Vim-Surround、CSコマンドE319:申し訳ありませんが、このバージョンではコマンドは利用できません

StackOverflow https://stackoverflow.com/questions/4300781

  •  29-09-2019
  •  | 
  •  

質問

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"

ありがとう

役に立ちましたか?

解決

インストールしましたか courdur.vim ?

サラウンド機能はVIMに組み込まれていませんが、私が言及したプラグインが必要です。

したがって、他の誰かから.vimrcを使用したとしても、プラグインもインストールする必要があります。インストール命令のリンクを参照してください。 (GitHubに最新バージョンを見つけるかもしれません)。

プラグインを手動でインストールする(つまり、〜/ .vim/ディレクトリでファイルを手動でダウンロードしてコピーするか)、.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

courvro.vimファイルのパスはインストールによって異なる場合がありますが、コマンドが定義されていることがわかります。

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top