Is there a method in OS X such that Vim will enter insert mode automatically and copy text, instead of having to enter insert mode first and press command + V? Or more generically, how to map command keys in Vim in OS X? I use command line Vim, not MacVim.
Add this to your vimrc:
nnoremap <cv> p:startinsert!<cr>
This will insert your clipboard content and place the cursor after the inserted text and change to insert mode.
But why you want insert mode altogether? Just press p
in normal mode!
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.