Thursday, December 12, 2013

Re: Immovable comments

Hi Ben!

On Do, 12 Dez 2013, Ben Fritz wrote:

> On Thursday, December 12, 2013 4:12:07 PM UTC-6, Toby Shepard wrote:
> > When I do a Shft-V selections and then use '>' to
> >
> > indent blocks, the comments don't come along; they
> >
> > prefer to hang out in the first column.
> >
> >
> >
> > This was not always the case, which leads me to
> >
> > believe that there is a setting that I can use
> >
> > to make comments behave just like any other text
> >
> > in this (and any other) regard.
> >
>
> 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.

Best,
Christian
--
Oft sind am besten Menschen dessen größte Tugenden und größte Flecken
unbekannt.
-- Jean Paul

--
--
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: