Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the line setting vim option at the bottom of a text file called?

Tags:

vim

The line looks like this

.. vim: set ft=help norl ts=8 tw=78 et :

And appears at the bottom of some text files, such as vim documentation.

I just want to know where I can look this topic up in the vim help to read about it.

like image 437
dan Avatar asked Jan 27 '11 16:01

dan


3 Answers

It is called a modeline.

See :help modeline for more information.

Basically, it is a way to tell Vim how to render a text file.

like image 55
Xavier T. Avatar answered Sep 24 '22 04:09

Xavier T.


It’s called a modeline. Try:

:help modeline
like image 41
andrewdotn Avatar answered Sep 25 '22 04:09

andrewdotn


That is the modeline.

:help modeline
like image 28
Matthew Rankin Avatar answered Sep 24 '22 04:09

Matthew Rankin