vimrc - How to set Ctrl+V in Vim/Vi to be system paste in insert mode and column editing in normal mode?
我想大声告诉你
我想大声告诉你 2017-05-16 16:36:59
0
1
647

Currently, I use Ctrl+V to paste from the system to vim relatively frequently, but there is a problem with this. The column editing function is lost in normal mode. How to set Ctrl+V to paste in the system in insert mode and normal mode? What about column editing? (Although Ctrl+Q is also satisfactory, I would like to know similar setting methods)

我想大声告诉你
我想大声告诉你

reply all(1)
世界只因有你

The solution you want
inoremap <C-V> <C-R>+

But this will automatically use autoindent to force indentation. A better solution is to temporarily turn off the paste option
For details, please refer to autoload/paste.vim

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!