Skip to content

autoindent, smartindent, cindent all make pasting work as if nopaste was turned on #3

@t-ye

Description

@t-ye

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions