vim 在保存和退出时崩溃

标签 vim crash abort

编程(和 SO)新手,所以我可能会遗漏一些非常基本的步骤,但这发生在与我一起工作的其他多个人身上。

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

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

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

我已经尝试过,但没有运气:
  • 已删除 .swp 文件
  • 通过覆盖系统版本更新 vim

  • 我的 Vim 安装信息(通过自制软件)
    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
    

    如果您需要更多信息,请告诉我。任何帮助将不胜感激!

    最佳答案

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

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

    关于vim 在保存和退出时崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30063290/

    相关文章:

    php - 在热图上显示大规模数据会导致网页崩溃

    api - Laravel 5.2 在中止时将 Http 响应状态代码设置为 403

    windows - NSIS中止和错误级别

    wpf - 当我有 CurrentDomain.UnhandledException 和 DispatcherUnhandledException 时,应用程序仍然崩溃

    android - 当onClickListener时,Android App崩溃

    C++应用程序仅在使用本地Windows调试器时运行,而不是哪个exe文件

    vim - 跳转到下一个以红色突出显示的错误/代码

    vim - 如何让 VIM matchit 插件与 ColdFusion 和 HTML 一起使用?

    c++ - 正则表达式以匹配 vim 中的函数返回类型

    vim - 如何在 VIM 中的可视模式下选择多行?