Monday, March 25, 2019

Re: v8.1 indentation change?

> On Monday, 25 March 2019 10:40:49 UTC, Keith wrote:
> > > On Thursday, 21 March 2019 13:55:34 UTC, Paul wrote:
> > > > On Tue, Mar 19, 2019 at 05:24:33AM -0700, Keith wrote:
> > > > >If I have a line that starts, say, one tab in, and then insert a '#' char in col 1, in v8.0 that would be that, but in v8.1, the '#' char gets auto-indented to one tab in, and the remainder of the line is shifted over accordingly.
> > > >
> > > > Could this be a plugin interfering? I can't reproduce it here.
> >
> > I found it in the end by installing v8.0 elsewhere and comparing the 'indent.vim' files. The old one had this near the top:
> >
> > " Don't reindent comments on first column
> > if cline =~ '^#.'
> > return 0
> > endif
> >
> > No idea why that was removed, but putting it back works just fine :)
>
> My bad - it was the 'perl.vim' file in the 'indent' folder.

It looks like this was intentionally removed. Perhaps a matter of taste
how comments are indented?

--
hundred-and-one symptoms of being an internet addict:
118. You are on a first-name basis with your ISP's staff.

/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///

--
--
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: