ansuman wrote:
> Hi
>
> I work with python.
>
> I want to use 4 space indentation personally for python files created by me
> (not associated with project). I know I can achieve this by:
> set ts=4 sts=4 sw=4 expandtab.
>
> Now the twist is that I am having a project folder always at
> D:\Projects\MyProject . The python file in the project has used 3 space
> indentation.
>
> How can I provide a local setting for my project files?
>
> Please help. Any suggestions and inputs will be appreciated.
>
> Thanks
> Ansuman
>
>
>
> --
> View this message in context: http://vim.1045645.n5.nabble.com/Apply-different-setting-to-file-belonging-to-a-perticular-location-tp5710105.html
> Sent from the Vim - General mailing list archive at Nabble.com.
>
>
http://wiki.python.org/moin/Vim
Especially:
"""
Indentation
A useful addition to Python source files is this comment:
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
This may need the modeline option enabled in your ~/.vimrc file:
set modeline
"""
Cheers,
JM
--
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
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment