Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Any vim command to enter insert mode after paste?

Tags:

command

vim

If I use 'p' to paste, vim will remain at normal mode. Is there a command where I can paste and enter insert mode?

like image 310
jackysee Avatar asked Feb 27 '26 19:02

jackysee


2 Answers

That depends where you wish to insert text after you've pasted. Paste as normal using p and then enter insert mode using aAiIoO...

The vim mindset is to enter insert mode as frequently as is strictly necessary.

If you meant how do I paste whilst remaining in insert mode you can use <ctrl-r>[register name]. E.g <ctrl-r>" for the default register.

like image 118
Greg Sexton Avatar answered Mar 01 '26 16:03

Greg Sexton


You can paste from insert mode directly, using Ctrl+op. Perhaps this will work for you?

like image 39
Peter Avatar answered Mar 01 '26 16:03

Peter



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!