Home > vim > vim modelines

vim modelines

Problem:

I noted that my collegues did not like having line numbering on when editing their files. So instead of setting it globally in the .vimrc file I opted for modelines as this feature was not disabled.

Solution:

Placing this at the start of end of a file

# vim: nu ts=4 sw=4 expandtab

Unfortunately, I could not change the colorscheme using the same method 😦

Source:
http://vim.wikia.com/wiki/Modeline_magic

Advertisements
Categories: vim
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: