我刚刚将vim
安装到Webfaction共享服务器上的主目录中。 Everthing似乎运行良好,除了我为 - set color column安装更新版本的一个功能。
当我执行以下操作时:
:set cc=80
命令仍然在提示符处,没有任何反应。有什么想法吗?
:version
输出
:version
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Jan 8 2014 09:05:26)
Compiled by ryanjdillon@web394.webfaction.com
Normal version without GUI. Features included (+) or not (-):
-arabic +diff +jumplist -mouse_sysmouse +scrollbind +virtualedit
+autocmd +digraphs -keymap -mouse_urxvt +signs +visual
-balloon_eval -dnd -langmap +mouse_xterm +smartindent +visualextra
-browse -ebcdic +libcall +multi_byte -sniff +viminfo
+builtin_terms -emacs_tags +linebreak +multi_lang +startuptime +vreplace
+byte_offset +eval +lispindent -mzscheme +statusline +wildignore
+cindent +ex_extra +listcmds +netbeans_intg -sun_workshop +wildmenu
+clientserver +extra_search +localmap +path_extra +syntax +windows
+clipboard -farsi -lua -perl +tag_binary +writebackup
+cmdline_compl +file_in_path +menu +persistent_undo +tag_old_static +X11
+cmdline_hist +find_in_path +mksession +postscript -tag_any_white +xfontset
+cmdline_info +float +modify_fname +printer -tcl -xim
+comments +folding +mouse -profile +terminfo +xsmp_interact
-conceal -footer -mouseshape -python +termresponse +xterm_clipboard
+cryptv +fork() -mouse_dec -python3 +textobjects -xterm_save
-cscope +gettext -mouse_gpm +quickfix +title
+cursorbind -hangul_input -mouse_jsbterm +reltime -toolbar
+cursorshape +iconv -mouse_netterm -rightleft +user_commands
+dialog_con +insert_expand -mouse_sgr -ruby +vertsplit
system vimrc file: "$VIM/vimrc"
user vimrc file: "$HOME/.vimrc"
2nd user vimrc file: "~/.vim/vimrc"
user exrc file: "$HOME/.exrc"
fall-back for $VIM: "/home/ryanjdillon/share/vim"
Compilation:
gcc -c -I. -Iproto -DHAVE_CONFIG_H -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: gcc -L/usr/local/lib -Wl,--as-needed -o vim -lSM -lICE -lXpm -lXt -lX11 -lXdmcp -lSM -lI
CE -lm -ltinfo -lnsl -lselinux
:echo $VIMRUNTIME
输出
/home/ryanjdillon/share/vim/vim74
答案 0 :(得分:3)
@Ingo Karkat的第一个问题(在评论中),你的答案非常有帮助。
我很确定你编译了vim但没有安装运行时文件。 ColorColumn突出显示组(以及许多其他组)在运行时目录下的syntax/syntax.vim
中定义。
查看您的:version
信息,我认为运行时目录应为/home/ryanjdillon/share/vim/runtime/
。您应该能够使用
:echo $VIMRUNTIME
该目录是否存在?如果是,它是否包含syntax/
子目录和syntax/syntax.vim
?我对此表示怀疑。
重新阅读安装说明,并下载运行时文件。