On 11/09/2010 09:28 AM, Ben Fritz wrote:


On Nov 8, 3:34 pm, AK<[email protected]>  wrote:
On 11/08/2010 02:40 PM, Tuomas Pellonper wrote:

Hello!

When I am editing python code and I start inserting a comment by
typing '#', vim shifts this character to the first column of the line.
What might be causing this behavior and how do I fix it?

Regards,
Tuomas

This only happens when you haven't typed anything on the line yet, so
you can work around by making a insert mode mapping that types any
character, then backspace, then '#'. -ak

I don't think this is accurate, AK.

That's exactly what the page you link to recommends to do, if you want
to keep smartindent setting on. -ak


It may be a problem with user settings.

Tuomas, do you have 'smartindent' set?

Or, do you have 0# in your 'cinkeys' or 'indentkeys'?

See http://vim.wikia.com/wiki/Restoring_indent_after_typing_hash


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

Reply via email to