by function_seven · 8y ago · 0 comments
I'm always doing
:set paste
and :set nopaste
whenever I need to paste text from other sources into vim. Or, rather, I would paste, see the crazy indents and comment characters auto-repeating, and have to decide if I should revert, issue the :set paste, and try again; or if it would be quicker to manually clean up what I just did.I just added the code to my .vimrc. Works like a charm.
I only bring up unimpaired.vim as it provides a whole heap of neat mappings for other toggles you might be manually performing. Most of which follow a simple pattern that makes them easy to remember.
I don’t believe any other plugin has increased my productivity as much as unimpaired.vim. Popping up the doc to link to the YOPO note I’ve realised just how many of those next/previous bindings I use as muscle memory.
¹. https://github.com/tpope/vim-unimpaired.git
². https://github.com/tpope/vim-unimpaired/blob/master/doc/unim...
:diffthis
:set [no]list
:set [no]wrap
I know how to map shortcuts, but I never could bring myself to make them, because I've done that too many times in the past and end up with a mish-mash of private mappings that atrophy my vim skills in a way. Hope that makes sense.But this plugin is super consistent internally. Great mnemonics. I don't mind coming to rely on it.
Thanks.