GVIM的Ctrl+V粘贴/Visual块模式冲突

来自:http://tunps.com/gvim-ctrl-v-conflictionvim

在Windows平台的GVIM中,Ctrl+V是没法实现进入Visual块模式的,由于Ctrl+V也有粘贴的做用。Vim的帮助里面已经有解释:bash

						*CTRL-V* *blockwise-visual*CTRL-V			start Visual mode blockwise.  Note: Under Windows
			CTRL-V could be mapped to paste text, it doesn't work
			to start Visual mode then, see |CTRL-V-alternative|.

而后转到CTRL-V-alternativeapp

*CTRL-V-alternative* *CTRL-Q*Since CTRL-V is used to paste, you can't use it to start a blockwise Visual
selection.  You can use CTRL-Q instead.  You can also use CTRL-Q in Insert
mode and Command-line mode to get the old meaning of CTRL-V.  But CTRL-Q
doesn't work for terminals when it's used for control flow.

若是非要使用Ctrl+V,能够将的map删除掉:ide

修改 vim/vim73/mswin.vim, 修改以下:spa

" CTRL-V and SHIFT-Insert are Paste
map  "+gP


改为(把 map  刪掉就對了).terminal

" CTRL-V and SHIFT-Insert are Paste
"map  "+gP


就能够用 Ctrl + v 了get

相关文章
相关标签/搜索