For this plugin to work, it appears that all types of automatic indenting must be off, i.e.,
set noautoindent
set nosmartindent
set nocindent
must be in your .vimrc. (Not sure if any type of automatic indenting affects the other.)1 Checked both in and out of tmux.
I realize this was addressed in #2, but I'm hoping it's possible to add an "automatic indentation toggle" to the plugin. I like some automatic indenting, and it doesn't really save any time if I have to call set noautoindent and set autoindent every time I paste.
1. I did a bit of experimentation with set paste and noted that set paste followed by set autoindent (or either of the other two automatic indenting settings) still broke pasting, with or without this plugin, even though I was still in paste insert mode. So it seems that set paste may just do the above disabling of automatic indenting (among other things) and we can break it be re-enabling them.
For this plugin to work, it appears that all types of automatic indenting must be off, i.e.,
must be in your
.vimrc. (Not sure if any type of automatic indenting affects the other.)1 Checked both in and out of tmux.I realize this was addressed in #2, but I'm hoping it's possible to add an "automatic indentation toggle" to the plugin. I like some automatic indenting, and it doesn't really save any time if I have to call
set noautoindentandset autoindentevery time I paste.1. I did a bit of experimentation with
set pasteand noted thatset pastefollowed byset autoindent(or either of the other two automatic indenting settings) still broke pasting, with or without this plugin, even though I was still in paste insert mode. So it seems thatset pastemay just do the above disabling of automatic indenting (among other things) and we can break it be re-enabling them.