Monday, March 17, 2014

Selective effect of updates in the ~/.vimrc file.

Hello,

I would be glad if someone could explain how to make Vim work in the way that's prescribed in its updated configuration with absolutely all files (in my case new config is working selectively).

Actually, I have put two lines to the ~/.vimrc.local file in order to enable automatic folding for the C++ source files. And it seems like for a some reason my updates does not work in some locations:


$ vim ~/.vimrc //Modify config
$ reboot
$ vim ~/progs/sc-client-server/src/st.cpp //No fold found. BUT:
$ cp ~/progs/sc-client-server/src/st.cpp /tmp
$ vim /tmp/st.cpp //Auto fold works fine. OR:
$ cd ~/progs/sc-client-server/src/ && mv src source
$ vim ~/progs/sc-client-server/source/st.cpp //Auto fold works fine.

Is there any kind of cache or memory inside of Vim that prevents the desired file representation? If so, how can I get rid of this cache and make Vim work properly just everywhere?

Thank you.

PS. The full version of this question is here: http://stackoverflow.com/questions/22449828/auto-fold-for-c-sources-and-headers

--
--
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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment