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

相關文章
相關標籤/搜索