每次我调用 gundo 时,MacVim 都会崩溃并出现以下错误。
Vim: Caught deadly signal SEGV
Vim: Finished.
它在普通 vim 中运行良好,但我不确定问题是什么,我通过 macports 构建了该应用程序,它是最新版本,我正在使用最新版本的 Janus。
VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Aug 13 2012 23:40:11)
MacOS X (unix) version
Included patches: 1-244, 246-390
Compiled by ley@appa
Huge version with MacVim 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_gui +diff +digraphs +dnd -ebcdic +emacs_tags +eval +ex_extra +extra_search
+farsi +file_in_path +find_in_path +float +folding -footer +fork() +fullscreen +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 +mouse_urxvt +multi_byte +multi_lang
-mzscheme +netbeans_intg +odbeditor +path_extra +perl +persistent_undo +postscript +printer +profile
+python -python3 +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 +transparency +user_commands +vertsplit
+virtualedit +visual +visualextra +viminfo +vreplace +wildignore +wildmenu +windows +writebackup
-X11 -xfontset +xim -xsmp -xterm_clipboard -xterm_save
我只有在使用 MacVim 时才遇到这个问题。Vim 运行正常。
答案1
我建议使用 homebrew 而不是 MacPorts。
对于那些遇到此问题并使用自制软件的人来说,这对我有用:
brew unlink python
brew unlink macvim
brew remove macvim
brew install -v --force macvim
brew link macvim
brew link python
复制并粘贴到终端的一行代码:
brew unlink python && brew unlink macvim && brew remove macvim && brew install -v --force macvim && brew link macvim && brew link python