The workflow Id like is as follows
- Im in insert mode
- I paste using
Command + V
- The text is pasted
- Normal mode is initiated
Currently I remain in insert mode afterwards
The workflow Id like is as follows
Command + V
Currently I remain in insert mode afterwards
It's not recommended that you use cmd+v for pasting but here is the solution. Remap your key like this and your register to whatever you use. Position your cursor however you want in the function.
function! LeaveInsert() abort
exe "normal! ".'"'."+p "
call feedkeys("\<Esc>")
endfunction
inoremap <c-v> <Cmd> :call LeaveInsert()<cr>