Yegappan wrote:
> On Sun, Jun 13, 2021 at 10:46 AM Christian Brabandt <cbli...@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. I think 'smartindent' belongs to the second list, options that keep their value but their effect is disabled. 'formatoptions' also belongs in the second list. -- I have read and understood the above. X________________ /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org /// -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/202106131940.15DJeJBK680146%40masaka.moolenaar.net.