pkt / lh-vim

Luc Hermitte's lh-vim to save it from google code closing
0 stars 0 forks source link

Local_vimrc.vim breaks modeline defined in source files. #34

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install local_vimrc.vim
2. Start vim with a file in your home dire that has modeline values that are 
different from one in your .vimrc
3. Verify that modeline values are not set correctly

What version of the product are you using? On what operating system?
v1.9

Original issue reported on code.google.com by casey.mc...@gmail.com on 4 Jan 2011 at 2:44

GoogleCodeExporter commented 9 years ago
I have to find a way to reexecute parts on the local vimrc while keeping the 
modeline options safe.

I guess I'll source the local vimrc in two passes. One before the modeline is 
read in order to set everything. And one after in order to be sure global 
settings are always reset when the current buffer changes. This approach will 
make anti-reinclusion guards even more important than what they were before.

Original comment by luc.herm...@gmail.com on 6 Jan 2011 at 2:20