Tuesday, January 17, 2012

setting global options from a modeline

Is it possible to set the global version of an option using a modeline?

My use-case is the following: Whenever I work on a certain project, I want to have certain settings. I do not want these settings when I work on other projects, and I do not want to write modelines in every file of the project. So, you may very well ask, how do I define a project? Well, whenever I work on it I tend to start by running
  vim TODO
This is why I thought about using a modeline in the file TODO. I could also identify the project by its directory name, I guess, although this seems frailer.

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: