Wikia

Vim Tips Wiki

Changes: Vim-plugin-manager

Edit

Back to page

(Comments: add link to 200912)
(vim-addon-manager: fix name, remove duplicate content. Point to documantation and remove outdated description)
 
Line 2: Line 2:
 
<tt>.vimrc</tt>:
 
<tt>.vimrc</tt>:
 
<pre>
 
<pre>
set runtimepath+=~/vim-plugins/vim-plugin-manager
+
set runtimepath+=~/vim-plugins/vim-addon-manager
 
call scriptmanager#Activate(["vim-haxe","snipmate","vim-plugin-fcsh"])
 
call scriptmanager#Activate(["vim-haxe","snipmate","vim-plugin-fcsh"])
 
</pre>
 
</pre>
Line 9: Line 9:
   
 
==Implementation details==
 
==Implementation details==
Each plugin is put into a directory on the same level as vim-plugin-manager. In this case it's <tt>~/vim-plugin-manager</tt>.
+
See github page. There is enough documentation now.
 
Activate fetches the repository if it doesn't exist yet and adds the path to Vim's runtimepath. The repository can be either a git url or a Vim plugin hosted on http://www.vim.org.
 
 
A global variable, the dependency descriptions and the vim-plugin-manager-known-repositories tell Vim where to find plugins.
 
 
The core <tt>.vim</tt> file <tt>autoload/scriptmanager.vim</tt> is small. If you can't understand it let me explain it to you. If you think it's too complicated you've found a bug.
 
   
 
==Repository location==
 
==Repository location==
[http://github.com/MarcWeber/vim-plugin-manager github project page]
+
[http://github.com/MarcWeber/vim-addon-manager github project page]
   
 
==See also==
 
==See also==

Latest revision as of 16:50, August 17, 2010

Usage exampleEdit

.vimrc:

set runtimepath+=~/vim-plugins/vim-addon-manager
call scriptmanager#Activate(["vim-haxe","snipmate","vim-plugin-fcsh"])

A function such as scriptmanager#Update() will be written in the near future which will update scripts.

Implementation detailsEdit

See github page. There is enough documentation now.

Repository locationEdit

github project page

See alsoEdit

Vimana an alternative Vim script manager in Perl

CommentsEdit

See discussion at 200912 (I won't put a TipProposed template on this page since it is not a tip).

Marc: What do you want to do with the old page: TOVL - one lib for all ?

Options are to keep both pages (why?), to merge the two pages, or to delete the old page. Merging might be: Replace the old page with a redirect to this page; or, do the redirect and put some of the TOVL text in this page. I may replace the old page with a redirect if there are no other views. JohnBeckett 01:27, January 6, 2010 (UTC)

Around Wikia's network

Random Wiki