Vim-surround ، CS Command E319: آسف ، الأمر غير متوفر في هذا الإصدار

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

  •  29-09-2019
  •  | 
  •  

سؤال

حاولت تنفيذ أمر CS لـ Vim-surround. لكن لسوء الحظ ، حصلت على 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"

شكرًا

هل كانت مفيدة؟

المحلول

هل قمت بتثبيت المحيط ?

الميزة المحيطة ليست مدمجة في VIM ولكنها تتطلب المكون الإضافي الذي ذكرته.

لذلك حتى لو استخدمت .vimrc من شخص آخر ، يجب عليك أيضًا تثبيت المكون الإضافي. انظر رابط تعليمات التثبيت. (قد تجد أحدث إصدار على Github).

يجب عليك إما تثبيت المكونات الإضافية يدويًا (أي تنزيل ونسخ الملفات يدويًا في ~/ .vim/ directory) ، أو استخدم SVN كما هو مذكور في بداية ملفات .vimrc الخاصة بك ، لكنني لست متأكدًا من أنك ستحصل على أحدث إصدار البرنامج المساعد بهذه الطريقة.

تحرير: إذا تم تثبيت المحيط بشكل صحيح ، عن طريق الكتابة
: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

قد تختلف مسار ملفات ound.vim مع التثبيت الخاص بك ، ولكن يجب أن ترى الأمر محدد.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top