Sunday, July 1, 2012

Re: nosmartindent

On Sunday, July 1, 2012 7:19:12 AM UTC-5, Lyuben Petrov wrote:
> au FileType py set autoindent
> au FileType py set smartindent
> I added these lines to my vimrc file but still when I open a python file smartindent is not set. Autoindent though is.


Probably it's because Vim detects *.py files as "python" filetype, not "py".

See the output of :set filetype? to determine the filetype of the current buffer.

If it actually is "py" and not "python", check the output of :verbose set smartindent? autoindent? to see where the options were set.

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

No comments: