On 01/05/13 19:33, skyworld wrote:
> I'm reading someone's code and at the end of the file I found some
> code like this:
> # vim:et:sw=4:ts=4:ft=python:
>
>
> I'm interested those "vim:et:sw...." because I'm a user of vi, but I
> don't know what these "comments" means and I guess they have some
> special usage.
You want to read at
:help modeline
:help 'modelines'
It allows you to set various options for the file, in case the
file/project happens to override your default settings. In your
example, it sets 'expandtab', 'shiftwidth', 'tabstop', and
'filetype' according to PEP8 standards.
-tim
--
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
Saturday, January 5, 2013
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment