我有一個支持剪貼板和xterm_clipboard支持的vim版本。但是,"*y
或"+y
不會複製到系統剪貼板。我知道我可以使用:w !pbcopy
(甚至爲它創建一個快捷方式),但我真的想要標準的方式。我看到fakeclip還可以,但希望找到一個解決方案,是不是假的......Vim&Mac:如何在沒有pbcopy的情況下複製到剪貼板
此外,我想並不需要使用"*
或"+
,只是Y用
UPDATE:
我只是使用:reg
命令進行檢查。我複製了一些文本在另一個應用程序中,然後在vim中運行:reg命令。文本不在那裏。然後我跑的MacVim和:REG顯示「*具有複製的文本所以有毛病我VIM
這裏的VIM --version:?
VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Nov 21 2013 07:13:18)
MacOS X (unix) version
Included patches: 1-244, 246-762
Compiled by [email protected]
Huge 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_sgr -mouse_sysmouse
+mouse_urxvt +mouse_xterm +multi_byte +multi_lang -mzscheme +netbeans_intg
+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 +user_commands +vertsplit +virtualedit +visual +visualextra +viminfo
+vreplace +wildignore +wildmenu +windows +writebackup +X11 +xfontset -xim
+xsmp_interact +xterm_clipboard -xterm_save
system vimrc file: "/opt/local/etc/vimrc"
user vimrc file: "$HOME/.vimrc"
user exrc file: "$HOME/.exrc"
fall-back for $VIM: "/opt/local/share/vim"
Compilation: /usr/bin/clang -c -I. -Iproto -DHAVE_CONFIG_H -I/opt/local/include -DMACOS_X_UNIX -no-cpp-precomp -pipe -O2 -arch x86_64 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -I/opt/local/include
Linking: /usr/bin/clang -L/opt/local/lib -L/opt/local/lib -arch x86_64 -L/usr/local/lib -o vim -lXt -lX11 -lSM -lICE -lm -lncurses -liconv -lintl -framework Cocoa
我不知道如何幫助你,但我想指出,因爲你說你不想要使用'「*'或'」+' - 這些是標準方式。 – pandubear