Monday, May 31, 2010

Re: plugins don't work on newer version

On 2010-05-31, taco wrote:
> thank you! it worked now, but I need copy those plugins to ~/.vim/plugin/
>
> if those plugins locate at /usr/share/vim/vim70/plugin/ it don't work.but,
> version 7.0 can work
>
> I don't why.

The reason is that since you are now using Vim 7.2, Vim is looking
for its plugins in a directory with "vim72" in its path rather than
"vim70". You can find out where it is looking by executing

:echo $VIMRUNTIME

to see just that directory, or

:set rtp?

to see all the directories Vim searches. You can also see the names
of the plugins that Vim has actually loaded by executing

:scriptnames

This is why you should never put non-standard plugins such as
tlist.vim in $VIMRUNTIME; you should always put them in either a
common directory such as /usr/share/vim/vimfiles or in your HOME
directory in ~/.vim. In that way, Vim can always find those plugins
even as you update your installation to more recent versions.

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

No comments:

Post a Comment