Customising Vim - Modelines
- One can customise the behaviour of vim for specific files using modelines.
- Modelines are included at the beginning or the end of the file and invoke "setlocal" on the vim variables.
- This is useful for setting options like the behaviour of tabs, the file mode , etc.
- For example, putting
- Will configure vim to use 4-characters-wide tabs and expand tabs into whitespace.