使用syntax on
inside .vimrc
(这是我的文件中唯一的一行.vimrc
),打开任何带有语法高亮的文件都会导致
Vim: Caught deadly signal SEGV
Vim: Finished.
Segmentation fault
如果我创建了一个新文件,即,vim test.py
然后只需输入以下字符之一:#
'
"
@
\
,上述错误就会立即发生,同时发生Vim: preserving files...
。或者,如果我输入任何会触发语法高亮的内容,都会导致分段错误。因此,输入诸如这样的代码if
也会使 Vim 崩溃。
我没有 sudo,因此必须自己构建。编译步骤:
git clone https://github.com/vim/vim.git
cd vim
./configure --prefix=$HOME/local --with-features=huge --enable-rubyinterp --enable-pythoninterp --enable-python3interp --enable-perlinterp --enable-luainterp
make
make install
Vim 版本输出vim --version
:
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Apr 5 2016 01:08:47)
Included patches: 1-1710
Compiled by ...
Huge version with GTK2 GUI. Features included (+) or not (-):
+acl +farsi +mouse_netterm +tag_binary
+arabic +file_in_path +mouse_sgr +tag_old_static
+autocmd +find_in_path -mouse_sysmouse -tag_any_white
+balloon_eval +float +mouse_urxvt -tcl
+browse +folding +mouse_xterm +terminfo
++builtin_terms -footer +multi_byte +termresponse
+byte_offset +fork() +multi_lang +textobjects
+channel +gettext -mzscheme +timers
+cindent -hangul_input +netbeans_intg +title
+clientserver +iconv +packages +toolbar
+clipboard +insert_expand +path_extra +user_commands
+cmdline_compl +job +perl +vertsplit
+cmdline_hist +jumplist +persistent_undo +virtualedit
+cmdline_info +keymap +postscript +visual
+comments +langmap +printer +visualextra
+conceal +libcall +profile +viminfo
+cryptv +linebreak +python/dyn +vreplace
+cscope +lispindent +python3/dyn +wildignore
+cursorbind +listcmds +quickfix +wildmenu
+cursorshape +localmap +reltime +windows
+dialog_con_gui +lua +rightleft +writebackup
+diff +menu +ruby +X11
+digraphs +mksession +scrollbind -xfontset
+dnd +modify_fname +signs +xim
-ebcdic +mouse +smartindent +xsmp_interact
+emacs_tags +mouseshape +startuptime +xterm_clipboard
+eval +mouse_dec +statusline -xterm_save
+ex_extra +mouse_gpm -sun_workshop +xpm
+extra_search -mouse_jsbterm +syntax
操作系统信息:
SUSE Enterprise
Linux 3.0.101-68-default x86_64
KDE: 4.3.5
显然,如果不启用语法,我就无法使用 vim,所以我希望修复这个问题。我的构建步骤有问题吗?系统内置的那个可以工作,但它只有 7.3,并且缺少几乎所有最有用的功能,例如 python、lua、ruby 和剪贴板。
编辑:
已尝试--noplugin
,问题同样。
尝试再次编译它,但没有额外的功能,但./configure --prefix=$HOME/local && make && make install
问题依然存在。