Quantcast
Channel: Turning off auto indent when pasting text into vim - Stack Overflow
Viewing all articles
Browse latest Browse all 28

Answer by Dergachev for Turning off auto indent when pasting text into vim

$
0
0

Stick this in your ~/.vimrc and be happy:

" enables :Paste to just do what you want
command Paste execute 'set noai | insert | set ai'

Edit: on reflection, :r !cat is a far better approach since it's short, semantic, and requires no custom vimrc. Use that instead!


Viewing all articles
Browse latest Browse all 28

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>