I just discovered that the parenthesis matching the one the cursor
is on is not highlighted if it was initially off-screen and is
brought on-screen by scrolling or by the zt or zb commands.
Example:
In an xterm window running some shell, change to the vim source
directory, .../vim71/src. Then start vim with this command:
vim -N -u NONE --cmd 'runtime plugin/matchparen.vim' +143 main.c
The cursor should be on the opening parenthesis of the main_errors[]
initializer. Note that the matching closing parenthesis (on line
156) is not highlighted. Type
jk
to move the cursor off and back on the opening parenthesis and note
that the matching closing parenthesis is now highlighted.
Now type
zb
zt
The matching closing parenthesis is highlighted as it should be.
Now type
k
to move the cursor up a line and type
zb
j
zt
The cursor is over the opening parenthesis and the matching closing
parenthesis is on-screen but not highlighted.
The same problem appears if you put the cursor on the closing
parenthesis with the opening parenthesis off-screen and if you bring
the matching parenthesis on-screen by scrolling with ^Y and/or ^E
instead of jumping with zb or zt.
This happens on vim-7.1.297 on Linux and on SunOS. The output of
"vim --version" from the Linux version is attached below.
Matchparen.vim has a Last Change date of "2008 Feb 27".
Regards,
Gary
--------------------------------------------------------------------
VIM - Vi IMproved 7.1 (2007 May 12, compiled May 8 2008 17:15:39)
Included patches: 1-297
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
+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_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.1/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 -lm -lpangoxft-1.0
-lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lXt
-lncurses -lselinux -lacl -lgpm
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---