On So, 13 Jun 2021, Yegappan Lakshmanan wrote:
> Hi Christian,
>
> On Sun, Jun 13, 2021 at 10:46 AM Christian Brabandt <
cbl...@256bit.org> wrote:
> >
> >
> > On So, 13 Jun 2021, Yegappan Lakshmanan wrote:
> >
> > > Hi,
> > >
> > > The help mentions that when 'paste' is set, the 'smartindent' option
> > > will be reset. But it currently doesn't work this way. The 'smartindent'
> > > option is not disabled when 'paste' is set. I am attaching a minor update
> > > to the help text to remove this.
> >
> > Shouldn't we rather fix the code? so that when paste is in effect, vim
> > would not indent lines based on what is pasted.
> >
>
> Yes. I noticed this when adding a test for this. It makes sense to
> disable smartindent when 'paste' is set and restore the old value
> when 'paste' is disabled.