DarkMatter in Cyberspace
  • Home
  • Categories
  • Tags
  • Archives

Manage Vim Plugins with Pathogen


Install Pathogen

  1. Download pathogen.vim to ~/.vim/autoload;

  2. Add following lines to ~/.vimrc:

    syntax on set et execute pathogen#infect() call pathogen#helptags() filetype on

  3. mkdir ~/.vim/bundle

Install Plugin

Unzip the archive file of the plugin under ~/.vim/bundle like this (NerdTree Plugin in this case):

bundle -- nerdtree |-- doc | |-- NERD_tree.txt |-- tags |-- nerdtree_plugin | |-- exec_menuitem.vim | -- fs_menu.vim |-- plugin |-- NERD_tree.vim -- syntax-- nerdtree.vim

Now you can use :NERDTree in vi (you can use :N to trigger this command).

Uninstall Plugin

Just remove plugin directory under ~/.vim/bundle.

Disable a plugin temporarily

Add a tilde ("~") at the end of the directory name of the bundle. For example: "vimerl-1.4.1" to "vimerl-1.4.1~".

Ref: Line 129 in ~/.vim/autoload/pathogen.vim (or https://github.com/tpope/vim-pathogen/blob/master/autoload/pathogen.vim).

List all loaded scripts

:scriptnames (:scrip for short).



Published

Jun 20, 2013

Last Updated

Jun 20, 2013

Category

Tech

Tags

  • pathogen 1
  • plugin 16
  • vim 92

Contact

  • Powered by Pelican. Theme: Elegant by Talha Mansoor