81c2858
To: vim-dev@vim.org
81c2858
Subject: Patch 7.2.201
81c2858
Fcc: outbox
81c2858
From: Bram Moolenaar <Bram@moolenaar.net>
81c2858
Mime-Version: 1.0
81c2858
Content-Type: text/plain; charset=UTF-8
81c2858
Content-Transfer-Encoding: 8bit
81c2858
------------
81c2858
81c2858
Patch 7.2.201
81c2858
Problem:    Cannot copy/paste HTML to/from Firefox via the clipboard.
81c2858
Solution:   Implement this for GTK.  Add the "html" value to 'clipboard'.
81c2858
Files:	    runtime/doc/options.txt, src/globals.h, src/gui_gtk_x11.c,
81c2858
	    src/mbyte.c, src/proto/mbyte.pro, src/option.c
81c2858
81c2858
81c2858
*** ../vim-7.2.200/runtime/doc/options.txt	2009-02-21 20:27:00.000000000 +0100
81c2858
--- runtime/doc/options.txt	2009-06-12 22:25:22.000000000 +0200
81c2858
***************
81c2858
*** 1443,1448 ****
81c2858
--- 1444,1457 ----
81c2858
  	autoselectml	Like "autoselect", but for the modeless selection
81c2858
  			only.  Compare to the 'A' flag in 'guioptions'.
81c2858
  
81c2858
+ 	html		When the clipboard contains HTML, use this when
81c2858
+ 			pasting.  When putting text on the clipboard, mark it
81c2858
+ 			as HTML.  This works to copy rendered HTML from
81c2858
+ 			Firefox, paste it as raw HTML in Vim, select the HTML
81c2858
+ 			in Vim and paste it in a rich edit box in Firefox.
81c2858
+ 			Only supported for GTK version 2 and later.
81c2858
+ 			Only available with the |+multi_byte| feature.
81c2858
+ 
81c2858
  	exclude:{pattern}
81c2858
  			Defines a pattern that is matched against the name of
81c2858
  			the terminal 'term'.  If there is a match, no
81c2858
*** ../vim-7.2.200/src/globals.h	2009-06-16 15:12:11.000000000 +0200
81c2858
--- src/globals.h	2009-06-12 21:10:30.000000000 +0200
81c2858
***************
81c2858
*** 509,514 ****
81c2858
--- 509,515 ----
81c2858
  EXTERN int	clip_unnamed INIT(= FALSE);
81c2858
  EXTERN int	clip_autoselect INIT(= FALSE);
81c2858
  EXTERN int	clip_autoselectml INIT(= FALSE);
81c2858
+ EXTERN int	clip_html INIT(= FALSE);
81c2858
  EXTERN regprog_T *clip_exclude_prog INIT(= NULL);
81c2858
  #endif
81c2858
  
81c2858
*** ../vim-7.2.200/src/gui_gtk_x11.c	2009-06-16 15:12:11.000000000 +0200
81c2858
--- src/gui_gtk_x11.c	2009-06-16 14:44:19.000000000 +0200
81c2858
***************
81c2858
*** 107,112 ****
81c2858
--- 107,113 ----
81c2858
      TARGET_UTF8_STRING,
81c2858
      TARGET_STRING,
81c2858
      TARGET_COMPOUND_TEXT,
81c2858
+     TARGET_HTML,
81c2858
      TARGET_TEXT,
81c2858
      TARGET_TEXT_URI_LIST,
81c2858
      TARGET_TEXT_PLAIN,
81c2858
***************
81c2858
*** 123,128 ****
81c2858
--- 124,130 ----
81c2858
      {VIMENC_ATOM_NAME,	0, TARGET_VIMENC},
81c2858
      {VIM_ATOM_NAME,	0, TARGET_VIM},
81c2858
  #ifdef FEAT_MBYTE
81c2858
+     {"text/html",	0, TARGET_HTML},
81c2858
      {"UTF8_STRING",	0, TARGET_UTF8_STRING},
81c2858
  #endif
81c2858
      {"COMPOUND_TEXT",	0, TARGET_COMPOUND_TEXT},
81c2858
***************
81c2858
*** 140,145 ****
81c2858
--- 142,148 ----
81c2858
  {
81c2858
      {"text/uri-list",	0, TARGET_TEXT_URI_LIST},
81c2858
  # ifdef FEAT_MBYTE
81c2858
+     {"text/html",	0, TARGET_HTML},
81c2858
      {"UTF8_STRING",	0, TARGET_UTF8_STRING},
81c2858
  # endif
81c2858
      {"STRING",		0, TARGET_STRING},
81c2858
***************
81c2858
*** 178,183 ****
81c2858
--- 181,187 ----
81c2858
   * Atoms used to control/reference X11 selections.
81c2858
   */
81c2858
  #ifdef FEAT_MBYTE
81c2858
+ static GdkAtom html_atom = GDK_NONE;
81c2858
  static GdkAtom utf8_string_atom = GDK_NONE;
81c2858
  #endif
81c2858
  #ifndef HAVE_GTK2
81c2858
***************
81c2858
*** 1364,1369 ****
81c2858
--- 1368,1391 ----
81c2858
  	    else
81c2858
  		text = tmpbuf_utf8;
81c2858
  	}
81c2858
+ 	else if (len >= 2 && text[0] == 0xff && text[1] == 0xfe)
81c2858
+ 	{
81c2858
+ 	    vimconv_T conv;
81c2858
+ 
81c2858
+ 	    /* UTF-16, we get this for HTML */
81c2858
+ 	    conv.vc_type = CONV_NONE;
81c2858
+ 	    convert_setup_ext(&conv, (char_u *)"utf-16le", FALSE, p_enc, TRUE);
81c2858
+ 
81c2858
+ 	    if (conv.vc_type != CONV_NONE)
81c2858
+ 	    {
81c2858
+ 		text += 2;
81c2858
+ 		len -= 2;
81c2858
+ 		tmpbuf = string_convert(&conv, text, &len;;
81c2858
+ 		convert_setup(&conv, NULL, NULL);
81c2858
+ 	    }
81c2858
+ 	    if (tmpbuf != NULL)
81c2858
+ 		text = tmpbuf;
81c2858
+ 	}
81c2858
      }
81c2858
  #else /* !HAVE_GTK2 */
81c2858
  # ifdef FEAT_MBYTE
81c2858
***************
81c2858
*** 1451,1456 ****
81c2858
--- 1473,1479 ----
81c2858
  
81c2858
      if (info != (guint)TARGET_STRING
81c2858
  #ifdef FEAT_MBYTE
81c2858
+ 	    && (!clip_html || info != (guint)TARGET_HTML)
81c2858
  	    && info != (guint)TARGET_UTF8_STRING
81c2858
  	    && info != (guint)TARGET_VIMENC
81c2858
  #endif
81c2858
***************
81c2858
*** 1486,1491 ****
81c2858
--- 1509,1548 ----
81c2858
      }
81c2858
  
81c2858
  #ifdef FEAT_MBYTE
81c2858
+     else if (info == (guint)TARGET_HTML)
81c2858
+     {
81c2858
+ 	vimconv_T conv;
81c2858
+ 
81c2858
+ 	/* Since we get utf-16, we probably should set it as well. */
81c2858
+ 	conv.vc_type = CONV_NONE;
81c2858
+ 	convert_setup_ext(&conv, p_enc, TRUE, (char_u *)"utf-16le", FALSE);
81c2858
+ 	if (conv.vc_type != CONV_NONE)
81c2858
+ 	{
81c2858
+ 	    tmpbuf = string_convert(&conv, string, &length);
81c2858
+ 	    convert_setup(&conv, NULL, NULL);
81c2858
+ 	    vim_free(string);
81c2858
+ 	    string = tmpbuf;
81c2858
+ 	}
81c2858
+ 
81c2858
+ 	/* Prepend the BOM: "fffe" */
81c2858
+ 	if (string != NULL)
81c2858
+ 	{
81c2858
+ 	    tmpbuf = alloc(length + 2);
81c2858
+ 	    tmpbuf[0] = 0xff;
81c2858
+ 	    tmpbuf[1] = 0xfe;
81c2858
+ 	    mch_memmove(tmpbuf + 2, string, (size_t)length);
81c2858
+ 	    vim_free(string);
81c2858
+ 	    string = tmpbuf;
81c2858
+ 	    length += 2;
81c2858
+ 
81c2858
+ 	    selection_data->type = selection_data->target;
81c2858
+ 	    selection_data->format = 16;	/* 16 bits per char */
81c2858
+ 	    gtk_selection_data_set(selection_data, html_atom, 16,
81c2858
+ 							      string, length);
81c2858
+ 	    vim_free(string);
81c2858
+ 	}
81c2858
+ 	return;
81c2858
+     }
81c2858
      else if (info == (guint)TARGET_VIMENC)
81c2858
      {
81c2858
  	int l = STRLEN(p_enc);
81c2858
***************
81c2858
*** 3464,3469 ****
81c2858
--- 3521,3527 ----
81c2858
  
81c2858
      /* Initialise atoms */
81c2858
  #ifdef FEAT_MBYTE
81c2858
+     html_atom = gdk_atom_intern("text/html", FALSE);
81c2858
      utf8_string_atom = gdk_atom_intern("UTF8_STRING", FALSE);
81c2858
  #endif
81c2858
  #ifndef HAVE_GTK2
81c2858
***************
81c2858
*** 6665,6670 ****
81c2858
--- 6723,6732 ----
81c2858
  
81c2858
      for (i = 0; i < N_SELECTION_TARGETS; ++i)
81c2858
      {
81c2858
+ #ifdef FEAT_MBYTE
81c2858
+ 	if (!clip_html && selection_targets[i].info == TARGET_HTML)
81c2858
+ 	    continue;
81c2858
+ #endif
81c2858
  	received_selection = RS_NONE;
81c2858
  	target = gdk_atom_intern(selection_targets[i].target, FALSE);
81c2858
  
81c2858
*** ../vim-7.2.200/src/mbyte.c	2009-06-16 15:12:11.000000000 +0200
81c2858
--- src/mbyte.c	2009-06-16 15:01:30.000000000 +0200
81c2858
***************
81c2858
*** 3265,3271 ****
81c2858
  
81c2858
  # if defined(USE_ICONV) || defined(PROTO)
81c2858
  
81c2858
! static char_u *iconv_string __ARGS((vimconv_T *vcp, char_u *str, int slen, int *unconvlenp));
81c2858
  
81c2858
  /*
81c2858
   * Call iconv_open() with a check if iconv() works properly (there are broken
81c2858
--- 3265,3271 ----
81c2858
  
81c2858
  # if defined(USE_ICONV) || defined(PROTO)
81c2858
  
81c2858
! static char_u *iconv_string __ARGS((vimconv_T *vcp, char_u *str, int slen, int *unconvlenp, int *resultlenp));
81c2858
  
81c2858
  /*
81c2858
   * Call iconv_open() with a check if iconv() works properly (there are broken
81c2858
***************
81c2858
*** 3326,3338 ****
81c2858
   * If "unconvlenp" is not NULL handle the string ending in an incomplete
81c2858
   * sequence and set "*unconvlenp" to the length of it.
81c2858
   * Returns the converted string in allocated memory.  NULL for an error.
81c2858
   */
81c2858
      static char_u *
81c2858
! iconv_string(vcp, str, slen, unconvlenp)
81c2858
      vimconv_T	*vcp;
81c2858
      char_u	*str;
81c2858
      int		slen;
81c2858
      int		*unconvlenp;
81c2858
  {
81c2858
      const char	*from;
81c2858
      size_t	fromlen;
81c2858
--- 3326,3340 ----
81c2858
   * If "unconvlenp" is not NULL handle the string ending in an incomplete
81c2858
   * sequence and set "*unconvlenp" to the length of it.
81c2858
   * Returns the converted string in allocated memory.  NULL for an error.
81c2858
+  * If resultlenp is not NULL, sets it to the result length in bytes.
81c2858
   */
81c2858
      static char_u *
81c2858
! iconv_string(vcp, str, slen, unconvlenp, resultlenp)
81c2858
      vimconv_T	*vcp;
81c2858
      char_u	*str;
81c2858
      int		slen;
81c2858
      int		*unconvlenp;
81c2858
+     int		*resultlenp;
81c2858
  {
81c2858
      const char	*from;
81c2858
      size_t	fromlen;
81c2858
***************
81c2858
*** 3418,3423 ****
81c2858
--- 3420,3428 ----
81c2858
  	/* Not enough room or skipping illegal sequence. */
81c2858
  	done = to - (char *)result;
81c2858
      }
81c2858
+ 
81c2858
+     if (resultlenp != NULL)
81c2858
+ 	*resultlenp = (int)(to - (char *)result);
81c2858
      return result;
81c2858
  }
81c2858
  
81c2858
***************
81c2858
*** 5837,5844 ****
81c2858
--- 5842,5866 ----
81c2858
      char_u	*from;
81c2858
      char_u	*to;
81c2858
  {
81c2858
+     return convert_setup_ext(vcp, from, TRUE, to, TRUE);
81c2858
+ }
81c2858
+ 
81c2858
+ /*
81c2858
+  * As convert_setup(), but only when from_unicode_is_utf8 is TRUE will all
81c2858
+  * "from" unicode charsets be considered utf-8.  Same for "to".
81c2858
+  */
81c2858
+     int
81c2858
+ convert_setup_ext(vcp, from, from_unicode_is_utf8, to, to_unicode_is_utf8)
81c2858
+     vimconv_T	*vcp;
81c2858
+     char_u	*from;
81c2858
+     int		from_unicode_is_utf8;
81c2858
+     char_u	*to;
81c2858
+     int		to_unicode_is_utf8;
81c2858
+ {
81c2858
      int		from_prop;
81c2858
      int		to_prop;
81c2858
+     int		from_is_utf8;
81c2858
+     int		to_is_utf8;
81c2858
  
81c2858
      /* Reset to no conversion. */
81c2858
  # ifdef USE_ICONV
81c2858
***************
81c2858
*** 5856,5892 ****
81c2858
  
81c2858
      from_prop = enc_canon_props(from);
81c2858
      to_prop = enc_canon_props(to);
81c2858
!     if ((from_prop & ENC_LATIN1) && (to_prop & ENC_UNICODE))
81c2858
      {
81c2858
  	/* Internal latin1 -> utf-8 conversion. */
81c2858
  	vcp->vc_type = CONV_TO_UTF8;
81c2858
  	vcp->vc_factor = 2;	/* up to twice as long */
81c2858
      }
81c2858
!     else if ((from_prop & ENC_LATIN9) && (to_prop & ENC_UNICODE))
81c2858
      {
81c2858
  	/* Internal latin9 -> utf-8 conversion. */
81c2858
  	vcp->vc_type = CONV_9_TO_UTF8;
81c2858
  	vcp->vc_factor = 3;	/* up to three as long (euro sign) */
81c2858
      }
81c2858
!     else if ((from_prop & ENC_UNICODE) && (to_prop & ENC_LATIN1))
81c2858
      {
81c2858
  	/* Internal utf-8 -> latin1 conversion. */
81c2858
  	vcp->vc_type = CONV_TO_LATIN1;
81c2858
      }
81c2858
!     else if ((from_prop & ENC_UNICODE) && (to_prop & ENC_LATIN9))
81c2858
      {
81c2858
  	/* Internal utf-8 -> latin9 conversion. */
81c2858
  	vcp->vc_type = CONV_TO_LATIN9;
81c2858
      }
81c2858
  #ifdef WIN3264
81c2858
      /* Win32-specific codepage <-> codepage conversion without iconv. */
81c2858
!     else if (((from_prop & ENC_UNICODE) || encname2codepage(from) > 0)
81c2858
! 	    && ((to_prop & ENC_UNICODE) || encname2codepage(to) > 0))
81c2858
      {
81c2858
  	vcp->vc_type = CONV_CODEPAGE;
81c2858
  	vcp->vc_factor = 2;	/* up to twice as long */
81c2858
! 	vcp->vc_cpfrom = (from_prop & ENC_UNICODE) ? 0 : encname2codepage(from);
81c2858
! 	vcp->vc_cpto = (to_prop & ENC_UNICODE) ? 0 : encname2codepage(to);
81c2858
      }
81c2858
  #endif
81c2858
  #ifdef MACOS_X
81c2858
--- 5878,5923 ----
81c2858
  
81c2858
      from_prop = enc_canon_props(from);
81c2858
      to_prop = enc_canon_props(to);
81c2858
!     if (from_unicode_is_utf8)
81c2858
! 	from_is_utf8 = from_prop & ENC_UNICODE;
81c2858
!     else
81c2858
! 	from_is_utf8 = from_prop == ENC_UNICODE;
81c2858
!     if (to_unicode_is_utf8)
81c2858
! 	to_is_utf8 = to_prop & ENC_UNICODE;
81c2858
!     else
81c2858
! 	to_is_utf8 = to_prop == ENC_UNICODE;
81c2858
! 
81c2858
!     if ((from_prop & ENC_LATIN1) && to_is_utf8)
81c2858
      {
81c2858
  	/* Internal latin1 -> utf-8 conversion. */
81c2858
  	vcp->vc_type = CONV_TO_UTF8;
81c2858
  	vcp->vc_factor = 2;	/* up to twice as long */
81c2858
      }
81c2858
!     else if ((from_prop & ENC_LATIN9) && to_is_utf8)
81c2858
      {
81c2858
  	/* Internal latin9 -> utf-8 conversion. */
81c2858
  	vcp->vc_type = CONV_9_TO_UTF8;
81c2858
  	vcp->vc_factor = 3;	/* up to three as long (euro sign) */
81c2858
      }
81c2858
!     else if (from_is_utf8 && (to_prop & ENC_LATIN1))
81c2858
      {
81c2858
  	/* Internal utf-8 -> latin1 conversion. */
81c2858
  	vcp->vc_type = CONV_TO_LATIN1;
81c2858
      }
81c2858
!     else if (from_is_utf8 && (to_prop & ENC_LATIN9))
81c2858
      {
81c2858
  	/* Internal utf-8 -> latin9 conversion. */
81c2858
  	vcp->vc_type = CONV_TO_LATIN9;
81c2858
      }
81c2858
  #ifdef WIN3264
81c2858
      /* Win32-specific codepage <-> codepage conversion without iconv. */
81c2858
!     else if ((from_is_utf8 || encname2codepage(from) > 0)
81c2858
! 	    && (to_is_utf8 || encname2codepage(to) > 0))
81c2858
      {
81c2858
  	vcp->vc_type = CONV_CODEPAGE;
81c2858
  	vcp->vc_factor = 2;	/* up to twice as long */
81c2858
! 	vcp->vc_cpfrom = from_is_utf8 ? 0 : encname2codepage(from);
81c2858
! 	vcp->vc_cpto = to_is_utf8 ? 0 : encname2codepage(to);
81c2858
      }
81c2858
  #endif
81c2858
  #ifdef MACOS_X
81c2858
***************
81c2858
*** 5894,5900 ****
81c2858
      {
81c2858
  	vcp->vc_type = CONV_MAC_LATIN1;
81c2858
      }
81c2858
!     else if ((from_prop & ENC_MACROMAN) && (to_prop & ENC_UNICODE))
81c2858
      {
81c2858
  	vcp->vc_type = CONV_MAC_UTF8;
81c2858
  	vcp->vc_factor = 2;	/* up to twice as long */
81c2858
--- 5925,5931 ----
81c2858
      {
81c2858
  	vcp->vc_type = CONV_MAC_LATIN1;
81c2858
      }
81c2858
!     else if ((from_prop & ENC_MACROMAN) && to_is_utf8)
81c2858
      {
81c2858
  	vcp->vc_type = CONV_MAC_UTF8;
81c2858
  	vcp->vc_factor = 2;	/* up to twice as long */
81c2858
***************
81c2858
*** 5903,5909 ****
81c2858
      {
81c2858
  	vcp->vc_type = CONV_LATIN1_MAC;
81c2858
      }
81c2858
!     else if ((from_prop & ENC_UNICODE) && (to_prop & ENC_MACROMAN))
81c2858
      {
81c2858
  	vcp->vc_type = CONV_UTF8_MAC;
81c2858
      }
81c2858
--- 5934,5940 ----
81c2858
      {
81c2858
  	vcp->vc_type = CONV_LATIN1_MAC;
81c2858
      }
81c2858
!     else if (from_is_utf8 && (to_prop & ENC_MACROMAN))
81c2858
      {
81c2858
  	vcp->vc_type = CONV_UTF8_MAC;
81c2858
      }
81c2858
***************
81c2858
*** 5913,5920 ****
81c2858
      {
81c2858
  	/* Use iconv() for conversion. */
81c2858
  	vcp->vc_fd = (iconv_t)my_iconv_open(
81c2858
! 		(to_prop & ENC_UNICODE) ? (char_u *)"utf-8" : to,
81c2858
! 		(from_prop & ENC_UNICODE) ? (char_u *)"utf-8" : from);
81c2858
  	if (vcp->vc_fd != (iconv_t)-1)
81c2858
  	{
81c2858
  	    vcp->vc_type = CONV_ICONV;
81c2858
--- 5944,5951 ----
81c2858
      {
81c2858
  	/* Use iconv() for conversion. */
81c2858
  	vcp->vc_fd = (iconv_t)my_iconv_open(
81c2858
! 		to_is_utf8 ? (char_u *)"utf-8" : to,
81c2858
! 		from_is_utf8 ? (char_u *)"utf-8" : from);
81c2858
  	if (vcp->vc_fd != (iconv_t)-1)
81c2858
  	{
81c2858
  	    vcp->vc_type = CONV_ICONV;
81c2858
***************
81c2858
*** 6170,6178 ****
81c2858
  
81c2858
  # ifdef USE_ICONV
81c2858
  	case CONV_ICONV:	/* conversion with output_conv.vc_fd */
81c2858
! 	    retval = iconv_string(vcp, ptr, len, unconvlenp);
81c2858
! 	    if (retval != NULL && lenp != NULL)
81c2858
! 		*lenp = (int)STRLEN(retval);
81c2858
  	    break;
81c2858
  # endif
81c2858
  # ifdef WIN3264
81c2858
--- 6201,6207 ----
81c2858
  
81c2858
  # ifdef USE_ICONV
81c2858
  	case CONV_ICONV:	/* conversion with output_conv.vc_fd */
81c2858
! 	    retval = iconv_string(vcp, ptr, len, unconvlenp, lenp);
81c2858
  	    break;
81c2858
  # endif
81c2858
  # ifdef WIN3264
81c2858
*** ../vim-7.2.200/src/option.c	2009-05-17 13:30:58.000000000 +0200
81c2858
--- src/option.c	2009-06-12 21:09:51.000000000 +0200
81c2858
***************
81c2858
*** 7024,7029 ****
81c2858
--- 7024,7030 ----
81c2858
      int		new_unnamed = FALSE;
81c2858
      int		new_autoselect = FALSE;
81c2858
      int		new_autoselectml = FALSE;
81c2858
+     int		new_html = FALSE;
81c2858
      regprog_T	*new_exclude_prog = NULL;
81c2858
      char_u	*errmsg = NULL;
81c2858
      char_u	*p;
81c2858
***************
81c2858
*** 7047,7052 ****
81c2858
--- 7048,7058 ----
81c2858
  	    new_autoselectml = TRUE;
81c2858
  	    p += 12;
81c2858
  	}
81c2858
+ 	else if (STRNCMP(p, "html", 4) == 0 && (p[4] == ',' || p[4] == NUL))
81c2858
+ 	{
81c2858
+ 	    new_html = TRUE;
81c2858
+ 	    p += 4;
81c2858
+ 	}
81c2858
  	else if (STRNCMP(p, "exclude:", 8) == 0 && new_exclude_prog == NULL)
81c2858
  	{
81c2858
  	    p += 8;
81c2858
***************
81c2858
*** 7068,7073 ****
81c2858
--- 7074,7080 ----
81c2858
  	clip_unnamed = new_unnamed;
81c2858
  	clip_autoselect = new_autoselect;
81c2858
  	clip_autoselectml = new_autoselectml;
81c2858
+ 	clip_html = new_html;
81c2858
  	vim_free(clip_exclude_prog);
81c2858
  	clip_exclude_prog = new_exclude_prog;
81c2858
      }
81c2858
*** ../vim-7.2.200/src/version.c	2009-06-16 15:12:11.000000000 +0200
81c2858
--- src/version.c	2009-06-16 15:14:02.000000000 +0200
81c2858
***************
81c2858
*** 678,679 ****
81c2858
--- 678,681 ----
81c2858
  {   /* Add new patch number below this line */
81c2858
+ /**/
81c2858
+     201,
81c2858
  /**/
81c2858
81c2858
-- 
81c2858
How To Keep A Healthy Level Of Insanity:
81c2858
13. Go to a poetry recital and ask why the poems don't rhyme.
81c2858
81c2858
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
81c2858
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
81c2858
\\\        download, build and distribute -- http://www.A-A-P.org        ///
81c2858
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///