Bug#437462: vim: patch 7.1.038 about preseveindent breaks python indentation

James Vega jamessan at debian.org
Tue Aug 14 14:52:25 UTC 2007


On Sun, Aug 12, 2007 at 06:58:49PM +0200, Adeodato Simó wrote:
> Consider the following python file:
> 
> --
> def function():
>     other_function(arg1, arg2, arg3,
> --
> 
> With 7.1-022, both with preseveindent on and off, if you go to arg3 and
> press "o", a new line is created and the indent is adjusted so that the
> cursor is right after the first 'n' of 'function' (12 spaces of indent).
> 
> With 7.1-056, it works the same with preseveindent off, but with the
> option set it does not work: 12 spaces are inserted, but the cursor is
> placed under the first 't' of 'other', leaving 7 spaces after it.

Could you post the values for your 'expandtab', 'shiftwidth',
'softtabstop', 'tabstop', 'autoindent', 'smartindent' and 'cindent'
options as well as the output of the ":filetype" command?

Thanks,

James
-- 
GPG Key: 1024D/61326D40 2003-09-02 James Vega <jamessan at debian.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-vim-maintainers/attachments/20070814/b0f2deea/attachment.pgp 


More information about the pkg-vim-maintainers mailing list