vim保存和退出时崩溃

4

我是一个新的程序员(也是 Stack Overflow 的新手),所以可能会错过一些非常基本的步骤,但我和其他几个同事都遇到了这个问题。

在 vim 中,当我打开多个缓冲区时,非常常见的情况是,如果我输入 :w 或运行任何退出命令(:q!ZZ:wq 等),程序将崩溃,只显示以下消息:

Vim: Caught deadly signal ABRT
Vim: preserving files...

Vim: Finished.
[1]    20271 abort      vim .
                             %

我尝试过的方法,但没有成功:

  • 删除 .swp 文件
  • 通过覆盖系统版本来更新 vim

我的 Vim 安装信息(通过 homebrew)

VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Nov  5 2014 21:00:28)
Compiled by root@apple.com
Normal version without GUI.  Features included (+) or not (-):
-arabic +autocmd -balloon_eval -browse +builtin_terms +byte_offset +cindent
-clientserver -clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments
-conceal +cryptv +cscope +cursorbind +cursorshape +dialog_con +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 -lua +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 +persistent_undo +postscript +printer -profile +python/dyn
-python3 +quickfix +reltime -rightleft +ruby/dyn +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
 -xterm_clipboard -xterm_save
   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"
      user exrc file: "$HOME/.exrc"
  fall-back for $VIM: "/usr/share/vim"
Compilation: gcc -c -I. -D_FORTIFY_SOURCE=0 -Iproto -DHAVE_CONFIG_H -arch i386 -arch x86_64 -g -Os -pipe
Linking: gcc -arch i386 -arch x86_64 -o vim -lncurses

如果需要更多信息,请告诉我。非常感谢您的帮助!
1个回答

0

你可能没有使用你安装的版本,因为编译日期是2014年11月。请尝试以下操作:

brew uninstall macvim
brew install macvim --override-system-vim

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接