I found this in my help files. What does it mean? Why is it there?


That's a "modeline", a feature of Vim. If it encounters such a line in the first or last 2 lines of a file, Vim reads settings from it and applies them to the current buffer.

Example: Forcing a file with extension .rdf to be handled as file type xml:

vim: ft=xml
<!-- rest of file -->

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.