Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to enter in Visual block Mode in Vim by command

My system has Ctrl + V reserved for the use of the clipboard, so I cannot access to Vim's visual mode by using that combination of buttons. Do you know what is the command such as :VisualBlockModeEnable or something similar to toggle this view?

Also I would like to change the binding in my ~/.vimrc

Thanks

like image 423
freddie_ventura Avatar asked Oct 29 '25 01:10

freddie_ventura


1 Answers

:execute "normal! \<C-v>"

This will enter visual block mode. To remap it use:

:nnoremap X <c-v>
like image 143
Doktor OSwaldo Avatar answered Oct 31 '25 01:10

Doktor OSwaldo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!