Mathias Hasselmann

Postings by Mathias on July 24, 2008

Project specific editor settings

Everyone knows the problem that seemingly each project uses its own code style. So here is my solution for that problem:

$ cat ~/.vim/after/ftplugin/c.vim 
if filereadable('.project.vim')
    source .project.vim
else
    set sw=2 sta et

...