On Mon, Oct 13, 2008 at 01:56:55PM -0700, Bobby Impollonia wrote:
Thanks Andy. It looks like indentexpr taking precedence is the problem. Unsetting indentexpr makes the right thing happen when I am in unclosed parens. Unfortunately, losing all the other python indentation behavior is not worth it just to get it to do what I want inside parentheses. I guess my only option is to modify the python.vim indentation file? I see the part that does indentation inside of parens
I think so, yes. I guess the quick & dirty way would be to copy & paste the function to the after/ftplugin/python.vim file, adjust it to the way you like it and set indentexpr to the name of the new file.
As there already are some g_pyindent_foo variables I'd probably add another option for this behaviour and submit it back so
a) others may benefit from it
b) I wouldn't have to keep syncing both versions if the original gets
improvements.
If you need help with the adjustments, I could probably take a stab at
it tomorrow afternoon, but knowing the people around here there probably
be at least 3 different versions floating around by then ;)
Regards,
Andy
--
Brandy-and-water spoils two good things.
-- Charles Lamb
pgpU9YC27oLPK.pgp
Description: PGP signature
