2015-05-12 21:29 GMT+03:00 Mikhail V <[email protected]>:
> For python code, indenting selected lines with '>' key does not shift 
> commented line, if it has initially zero indent.
> Can be reproduced only with "smartindent" setting on. Version 7.4.52, Ubuntu.
> Example:
> print a
> #print a
>
> after selecting and shifting with '>' key:
>     print a
> # print a

:h shift-left-right

> If the 'smartindent' option is on, or 'cindent' is on and 'cinkeys' contains
> '#' with a zero value, shift right does not affect lines starting with '#'
> (these are supposed to be C preprocessor lines that must stay in column 1).

You need to find out who set cindent and cinkeys for Python files. Start with

    :verbose set cindent? cinkeys?

it will show you both values and, most of time, where they were set
(there are ways to set them that will result in `verbose set …`
outputting nothing useful, except for the actual values).

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

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

Raspunde prin e-mail lui