c/c++ syntax and column 0

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

c/c++ syntax and column 0

Aaron Griffin
version info recorded at bottom of email...
user plugins, taglist.vim and minibufexplorer.vim
using snapshot 7.0083 from ftp (too lazy for cvs, heh)

When in c/c++ syntax, backspacing to column 0 has odd behavior... when
the cursor is in position 1, and backspace is pressed, the proper
character is removed, yet the cursor does not move at all... it's very
wierd.  I do have whichwrap=<,>,[,] which is the only setting that
might have anything to do with this.

If this is not a real bug, and just something stupid on my part,
please let me know... it's a tad irritating, but I can deal with it
for now.

As far as I can tell, it only happens in c/c++ syntax mode

$ uname -a
Linux animus 2.6.11.10-ARCH #1 SMP Mon May 16 14:58:59 PDT 2005 i686
Intel(R) Pentium(R) 4 CPU 3.00GHz GenuineIntel GNU/Linux

$ vim --version
VIM - Vi IMproved 7.0aa ALPHA (2005 Jun 8, compiled Jun  9 2005 18:20:36)
Compiled by griff@animus
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 +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
-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: "/etc/vimrc"
     user vimrc file: "$HOME/.vimrc"
      user exrc file: "$HOME/.exrc"
  system gvimrc file: "/etc/gvimrc"
    user gvimrc file: "$HOME/.gvimrc"
    system menu file: "$VIMRUNTIME/menu.vim"
  fall-back for $VIM: "/usr/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     -march=i686 -O2 -pipe
-I/usr/X11R6/include   -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS
-pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-I/usr/lib/perl5/5.8.6/i686-linux-thread-multi/CORE
-I/usr/include/python2.4 -pthread  -I/usr/lib/ruby/1.8/i686-linux
Linking: gcc  -L/usr/X11R6/lib   -rdynamic -Wl,-export-dynamic  -Wl,-E
  -L/usr/local/lib -o vim   -lgtk-x11-2.0   -lXt -lncurses -Wl,-E
-L/usr/local/lib
/usr/lib/perl5/5.8.6/i686-linux-thread-multi/auto/DynaLoader/DynaLoader.a
-L/usr/lib/perl5/5.8.6/i686-linux-thread-multi/CORE -lperl -lutil -lc
-L/usr/lib/python2.4/config -lpython2.4 -lutil -Xlinker
-export-dynamic  -Wl,-R -Wl,/usr/lib -L/usr/lib -L/usr/lib -lruby -lm
Reply | Threaded
Open this post in threaded view
|

Re: c/c++ syntax and column 0

Bram Moolenaar

Aaron Griffin wrote:

> version info recorded at bottom of email...
> user plugins, taglist.vim and minibufexplorer.vim
> using snapshot 7.0083 from ftp (too lazy for cvs, heh)
>
> When in c/c++ syntax, backspacing to column 0 has odd behavior... when
> the cursor is in position 1, and backspace is pressed, the proper
> character is removed, yet the cursor does not move at all... it's very
> wierd.  I do have whichwrap=3D<,>,[,] which is the only setting that
> might have anything to do with this.
>
> If this is not a real bug, and just something stupid on my part,
> please let me know... it's a tad irritating, but I can deal with it
> for now.
>
> As far as I can tell, it only happens in c/c++ syntax mode

First thing to try is to run Vim without those plugins.  If that helps
then find out which one causes the problem.

Also check the 'formatoptions' option.

--
hundred-and-one symptoms of being an internet addict:
61. Your best friends know your e-mail address, but neither your phone number
    nor the address where you live.

 /// Bram Moolenaar -- [hidden email] -- http://www.Moolenaar.net   \\\
///        Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\              Project leader for A-A-P -- http://www.A-A-P.org        ///
 \\\     Buy LOTR 3 and help AIDS victims -- http://ICCF.nl/lotr.html   ///