> We typically do it as follows: > > :au BufReadPost * if getline(1) =~ 'pattern' | do something | endif
Thanks all , it works ok
Also, one is "supposed" to put such things in .vim/scripts.vim (or vimfiles\scripts.vim if you're a Windozer)
That's why I won't use it. I like to have only one ~/.vimrc and nothing else for my config
