Not sure if this is related to updating vim this morning 
I used to have this (simplified) setting in ~/.vimrc

if has("autocmd")
  augroup misc_autocmd
    au!
"Automatically remove trailing whitespace.
    autocmd BufWriteCmd *.txt,*.h,*.c :if ! &bin | silent! %s/\s\+$//ge | endif
  augroup END
endif

it works until this morning, that open any *.txt file , make some
changes, then w! , it appears works but e! will bring back the old
content, and it keep complaining when attemp to switch to another
buffer because content is not saved.

If run without profile
vim -U NONE foo.txt

then there is no such problem.  Any idea what caused the problem?


VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Jul  5 2010 09:25:56)
Заплатки: 1-444
Скомпилирован  [email protected]
Обычная версия с графическим интерфейсом GTK2.  Включённые (+) и отключённые 
(-) особенности:
-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 +startuptime +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 
            общесистемный файл vimrc: "$VIM/vimrc"
         пользовательский файл vimrc: "$HOME/.vimrc"
          пользовательский файл exrc: "$HOME/.exrc"
           общесистемный файл gvimrc: "$VIM/gvimrc"
        пользовательский файл gvimrc: "$HOME/.gvimrc"
             общесистемный файл меню: "
$VIMRUNTIME/menu.vim"
          значение $VIM по умолчанию: "/usr/share/vim"
Параметры компиляции: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK  
-pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include 
-I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 
-I/usr/include/gio-unix-2.0/ -I/usr/include/pixman-1 -I/usr/include/freetype2 
-I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include     
-g -O2 -D_FORTIFY_SOURCE=1    -D_REENTRANT -D_GNU_SOURCE -DDEBIAN  
-fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64  -I/usr/lib/perl/5.10/CORE     
Сборка: gcc   -Wl,-E   -L/usr/local/lib -o vim   -pthread -lgtk-x11-2.0 
-lgdk-x11-2.0 -latk-1.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 
-lcairo -lgio-2.0 -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 
-lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0   -lXt -lncurses -lselinux   -Wl,-E 
 -fstack-protector -L/usr/local/lib  -L/usr/lib/perl/5.10/CORE -lperl -lm 

-- 
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3

-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to