0

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

chicks
  • 3,915
  • 10
  • 29
  • 37
Hulk
  • 401

1 Answers1

4

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>+