我是 vim 新手,我正在尝试粘贴来自其他应用程序的内容。我正在运行 OS X 10.9 Mavericks 附带的本机 vim。
当我运行“vim --version”时,这是输出
Normal version without 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 +diff +digraphs
-dnd -ebcdic -emacs_tags +eval +ex_extra +extra_search -farsi +file_in_path
+find_in_path +float +folding -footer +fork() -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 -osfiletype
+path_extra -perl +persistent_undo +postscript +printer -profile +python/dyn
-python3 +quickfix +reltime -rightleft +ruby/dyn +scrollbind +signs
+smartindent -sniff +startuptime +statusline -sun_workshop +syntax +tag_binary
+tag_old_static -tag_any_white -tcl +terminfo +termresponse +textobjects +title
-toolbar +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"
user exrc file: "$HOME/.exrc"
fall-back for $VIM: "/usr/share/vim"
我知道我需要将“-xterm_clipboard”更改为“+xterm_clipboard”才能粘贴其他来源的内容。
谢谢
安装你自己的 Vim。如果您还没有设置,请进行设置Homebrew http://brew.sh/, then:
brew install macvim --override-system-vim
额外的好处是 MacVim 可以作为本机应用程序运行,即在终端之外运行,就像其他平台上的 gVim 一样。它还使用“巨大”的功能集进行编译,因此与系统 Vim 不同,您几乎拥有所需的一切。
编辑:显然选项名称已更改;新的语法应该是
brew install macvim --with-override-system-vim
(See brew options macvim
以获得更多选择。)
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)