我试图执行VIM-Surround的CS命令。但是,不幸的是,我得到了E319:对不起,此版本消息中没有该命令。我使用vimrc http://amix.dk/vim/vimrc.html

这是我的VIM版本:

VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Nov 27 2010 19:38:25)
MacOS X (unix) version
Included patches: 1-47
Compiled by dio@Dios-MacBook.local
Normal 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 +multi_byte +multi_lang -mzscheme +netbeans_intg +odbeditor
-osfiletype +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
   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"

谢谢

有帮助吗?

解决方案

你安装了吗? abourd.vim ?

周围功能不是内置的VIM,而是我提到的插件。

因此,即使您使用了其他人的.vimrc,也应该安装插件。请参阅链接以获取安装说明。 (您可能会在GitHub上找到最新版本)。

您应该手动安装插件(即在您的〜/ .vim/ Directory中手动下载并复制文件),或使用.vimrc文件开头的SVN,但我不确定您会得到最新的插件版本。

编辑:如果正确安装了周围,则通过键入
:verbose map

在命令的长列表中,您应该看到类似的内容:

x s <Plug>Vsurround
Last set from ~\vimfiles\bundle\surround\plugin\surround.vim
n ySS <Plug>YSsurround
Last set from ~\vimfiles\bundle\surround\plugin\surround.vim n ySs <Plug>YSsurround
Last set from ~\vimfiles\bundle\surround\plugin\surround.vim
n yss <Plug>Yssurround
Last set from ~\vimfiles\bundle\surround\plugin\surround.vim
n yS <Plug>YSurround
Last set from ~\vimfiles\bundle\surround\plugin\surround.vim
n ys <Plug>Ysurround
Last set from ~\vimfiles\bundle\surround\plugin\surround.vim

VIM文件的路径可能会随您的安装而变化,但是您应该看到定义的命令。

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top