Under some conditions, the cursorcolumn highlighting is shifted to 
the right on folded lines.

In the following example, 'somefile' just needs to contain several 
lines of text (maybe a dozen), each line several characters long (> 
16).  I set the highlighting of CursorColumn to have a blue 
background in a color terminal so as to be able to distinguish it 
clearly from the Folded group.

   $ vim -N -u NONE -i NONE somefile

   :hi CursorColumn ctermbg=4
   :set cuc
   :set nowrap

Manually fold a set of lines somewhere in the text, e.g.,

   :4,6fold

Move the cursor to a non-folded line a few columns from the left 
margin, e.g.,

   8G
   8|
   
Now, use the 'zs' command to scroll the text horizontally so that 
the cursor column is at the left of the screen:

   zs

Notice that the cursorcolumn highlighting is now in the first screen 
column of unfolded lines, but is in screen column 8 (in this 
example) on the folded lines.  Moving the cursor to the right, e.g., 
by typing l, moves the cursorcolumn highlighting to the right, but 
it remains 8 columns too far to the right in the folded lines.

This bug appears in vim 7.2.22 compiled for Cygwin and running in 
rxvt and compiled for Red Hat Linux and running in xterm.  Here is 
the version information for the Linux build.

   VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Sep 21 2008 21:02:46)
   Included patches: 1-22
   Compiled by [EMAIL PROTECTED]
   Normal version with GTK2 GUI.  Features included (+) or not (-):
   -arabic +autocmd +balloon_eval +browse +builtin_terms +byte_offset +cindent 
   +clientserver +clipboard +cmdline_compl +cmdline_hist +cmdline_info 
+comments 
   +cryptv +cscope +cursorshape +dialog_con_gui +diff +digraphs +dnd -ebcdic 
   -emacs_tags +eval +ex_extra +extra_search -farsi +file_in_path +find_in_path 
   +float +folding -footer +fork() +gettext -hangul_input +iconv +insert_expand 
   +jumplist -keymap -langmap +libcall +linebreak +lispindent +listcmds 
+localmap 
   +menu +mksession +modify_fname +mouse +mouseshape -mouse_dec +mouse_gpm 
   -mouse_jsbterm -mouse_netterm -mouse_sysmouse +mouse_xterm +multi_byte 
   +multi_lang -mzscheme +netbeans_intg -osfiletype +path_extra -perl 
+postscript 
   +printer -profile -python +quickfix +reltime -rightleft -ruby +scrollbind 
   +signs +smartindent -sniff +statusline -sun_workshop +syntax +tag_binary 
   +tag_old_static -tag_any_white -tcl +terminfo +termresponse +textobjects 
+title
    +toolbar +user_commands +vertsplit +virtualedit +visual +visualextra 
+viminfo 
   +vreplace +wildignore +wildmenu +windows +writebackup +X11 -xfontset +xim 
   +xsmp_interact +xterm_clipboard -xterm_save 
      system vimrc file: "$VIM/vimrc"
        user vimrc file: "$HOME/.vimrc"
         user exrc file: "$HOME/.exrc"
     system gvimrc file: "$VIM/gvimrc"
       user gvimrc file: "$HOME/.gvimrc"
       system menu file: "$VIMRUNTIME/menu.vim"
     fall-back for $VIM: "/home/garyjohn/src/Linux/vim-7.2/share/vim"
   Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK  -DXTHREADS 
-D_REENTRANT -DXUSE_MTSAFE_API -I/usr/include/gtk-2.0 
-I/usr/lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/include/atk-1.0 
-I/usr/include/pango-1.0 -I/usr/include/freetype2 
-I/usr/include/freetype2/config -I/usr/include/glib-2.0 
-I/usr/lib/glib-2.0/include     -g -O2  -I/usr/X11R6/include       
   Linking: gcc  -L/usr/X11R6/lib   -L/usr/local/lib -o vim   
-Wl,--export-dynamic -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 
-lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0  
 -lXt -lm -lncurses -lselinux -lacl -lgpm 

Regards,
Gary


--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui