Showing posts with label VIM. Show all posts
Showing posts with label VIM. Show all posts

disable vi or vim auto indent or comment

VI or VIM: Disabling auto indent temporarily to "paste"

Sometimes you only need to paste some snippet of code,  that already has indentation, so you can disable it only during the paste operation:
:set paste

Then to revert setting

:set nopaste