Hacker News new | ask | show | jobs
by nick_g 3410 days ago
This has caught me as well, but it can be avoided by using `:set paste!` to toggle paste mode before pasting. This isn't something I need to worry about often enough but you can map that command if pasting external content is something you do often.
1 comments

Most terminals support bracketed paste, and vim can automatically toggle pastemode based on the special sequences.

Eg. https://github.com/ConradIrwin/vim-bracketed-paste