On Sun, Apr 16, 2006 at 05:47:37PM +0200, Bram Moolenaar wrote:
<snip>
> > To try it out, put the following in an empty buffer:
> >
> > :x.
> >
> > And position the cursor over/at the trailing space. Then execute
> >
> > :echo expand('<cWORD>')
> >
> > The expansion will be empty.
> >
> > Now, change the buffer to contain only
> >
> > :x.
> >
> > and again position the cursor over/at the trailing space. Again execute
> >
> > :echo expand('<cWORD>')
> >
> > The expansion will be ':x.'.
>
> I don't see this, the result is empty both times. Are you sure the
> cursor wasn't on the "."?
I've just upgraded to 7.0e and still see this behaviour but only my
Linux install - not Windows.
Regards,
Doug
VIM - Vi IMproved 7.0e BETA (2006 Apr 16, compiled Apr 16 2006 12:13:31)
Compiled by [EMAIL PROTECTED]
Huge 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 +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/doug/projects/vim/vim7/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 -O2 -fno-strength-reduce -Wall
-I/usr/X11R6/include -I/home/doug/opt/include/python2.4 -pthread
-I/usr/lib/ruby/1.8/i386-linux
Linking: gcc -L/usr/X11R6/lib -rdynamic -Wl,-export-dynamic
-L/usr/local/lib -o vim -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 -lncurses -lacl -lgpm
-L/home/doug/opt/lib/python2.4/config -lpython2.4 -lpthread -lutil -Xlinker
-export-dynamic -lruby -lm