Monday, March 17, 2014

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

On 2014-03-17, Виталий Исаев wrote:
> 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:

If you added two lines to a Vim configuration file and those two
lines are not working as you expect them to, it would help greatly
if you would include at least those two lines in your question.

> $ vim ~/.vimrc //Modify config
> $ reboot

I hope you don't think it's necessary to reboot your computer after
changing a Vim configuration file. It's not.

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

Vim does cache certain data between invocations, but it's unlikely
that that's the problem here. See

:help viminfo

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

If there is any information there that's important to your question,
you should post it here rather than expect readers of this list to
go hunting for information elsewhere.

Regards,
Gary

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