On 06/01/13 02:33, skyworld wrote:
> Hi,
>
> I'm reading someone's code and at the end of the file I found some
> code like this:
>
>
> #
> ###########################################################################
> #
> #{{{ * Editor configuration
> #
> ###########################################################################
> #
> # Local Variables:
> # mode: python
> # mode: outline-minor
> # outline-regexp: " *#{{{ [#*]+"
> # indent-tabs-mode: nil
> # End:
> # 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. Can anybody help me? thanks.
>
Short answer: After vim: each colon-separated part is the argument of a
:setlocal command.
Long answer: See (in Vim)
:help modeline
:help 'modeline'
:help 'modelines'
…and read attentively, it is said that "some" forms of modelines are
compatible with "some" versions of (legacy) vi. Or maybe your vi version
has help about them?
Best regards,
Tony.
--
In India, "cold weather" is merely a conventional phrase and has come
into use through the necessity of having some way to distinguish
between weather which will melt a brass door-knob and weather which
will only make it mushy.
-- Mark Twain
--
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