Thursday, December 12, 2013

Re: Immovable comments

On Thursday, December 12, 2013 4:39:32 PM UTC-6, Christian Brabandt wrote:
> On Do, 12 Dez 2013, Ben Fritz wrote:
> > Perhaps you are using a language whose comments start with a '#'
> > character, and that # is in the first column, and you have either
> > 'cindent' or 'smartindent' set? If all this is the case, then by
> > default Vim will not indent the line with >. I think cinoptions can
> > fix that, but C-like languages don't normally use # as a comment, so a
> > better option would probably be just turning off cindent or
> > smartindent.
>
> Vim can only since 7.4.069. Before that, # lines were considered as
> #defines and it was not possible to shift those lines right.
>

Thanks, Christian. I wasn't sure whether you meant that they would never indent,
or whether you meant they would never indent if 'smartindent' or 'cindent' was
set. I launched an old 7.3.969 I had laying around to try it out, it appears
you can still indent with > as long as 'smartindent' and 'cindent' are both off.

--
--
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/groups/opt_out.

No comments:

Post a Comment