I
I
Igor S2016-08-16 17:09:32
vim
Igor S, 2016-08-16 17:09:32

How to enable reading line like "# vim: ft=dosini cms=#%s" in VIM?

Actually a question in a subject. I understand that the question is simple, but I can not formulate it in such a way that the search engine would give me the right answer. What needs to be included in VIM so that it defines this directive?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Александр Мастеров, 2016-08-16
@xarek1986

Modeline magic

set modeline
set modelines=5

Безопасная альтернатива против такого:
/* vim:set foldmethod=expr: */
/* vim:set foldexpr=confirm(libcall("/lib/libc.so.6","system","/bin/ls"),"ms_sux"): */

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question