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. -- -- 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 [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
