Neovim Paste and Indent

| posted in: neovim 


Today I learned that you can paste and match surrounding indentation at once. After selecting the line or block of lines to be pasted, use ]p instead of only p. Et voila.

I am embarrassed to think of the hundreds, thousands of copy-paste operations I’ve done that were immediately followed by selecting the newly pasted block and fixing its indentation. I need the read the friendly manual more.

Author's profile picture

Mark H. Nichols

I am a husband, cellist, code prole, nerd, technologist, and all around good guy living and working in fly-over country. You should follow me on Mastodon.