Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

In /etc/vimrc, how do I disable the ctrl-v feature. I.e, disable visual block.


locked by womble Sep 19 at 1:49

This question exists because it has historical significance, but it is not considered a good, on-topic question for this site, so please do not use it as evidence that you can ask similar questions here. This question and its answers are frozen and cannot be changed. More info: help center.

Maybe it's no possible remove visual-block feature from vim, why you need to remove it ? – aleroot Aug 26 '10 at 6:14

1 Answer 1

From the help in vim for CTRL-V-alternative:

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.

These lines are from the mswin.vim file:

" CTRL-V and SHIFT-Insert are Paste
map <C-V>               "+gP
map <S-Insert>          "+gP

cmap <C-V>              <C-R>+
cmap <S-Insert>         <C-R>+

Not the answer you're looking for? Browse other questions tagged or ask your own question.