User Tools

Site Tools


vim:plugins

Vim Plugins

NERDTree

Install

wget http://www.vim.org/scripts/download_script.php?src_id=11834
cd ~/.vim
unzip ~/downloads/download_script.php\?src_id\=11834

Or just use the install script:
nerd_install.7z

Usage

Just type :NERDTree in your vim command mode.
Or enable autostart.

NERDTree autostart

Just add the following Lines to your ~/.vimrc

# ~/.vimrc
autocmd VimEnter * NERDTree
autocmd BufEnter * NERDTreeMirror
 
autocmd VimEnter * wincmd w

NERDTree Help in text and picture

The Help Page (Text)

" NERD tree (4.1.0) quickhelp~ |  1
" ============================ |~
" File node mappings~          |~
" double-click,                |~
" <CR>,                        |~
" o: open in prev window       |~
" go: preview                  |~
" t: open in new tab           |~
" T: open in new tab silently  |~
" middle-click,                |~
" i: open split                |~
" gi: preview split            |~
" s: open vsplit               |~
" gs: preview vsplit           |~
"                              |~
" ---------------------------- |~
" Directory node mappings~     |~
" double-click,                |~
" o: open & close node         |~
" O: recursively open node     |~
" x: close parent of node      |~
" X: close all child nodes of  |~
"    current node recursively  |~
" middle-click,                |~
" e: explore selected dir      |~
"                              |~
" ---------------------------- |~
" Bookmark table mappings~     |~
" double-click,                |~
" o: open bookmark             |~
" t: open in new tab           |~
" T: open in new tab silently  |~
" D: delete bookmark           |~
"                              |~
" ---------------------------- |~
" Tree navigation mappings~    |~
" P: go to root                |~
" p: go to parent              |~
" K: go to first child         |~
" J: go to last child          |~
" <C-j>: go to next sibling    |~
" <C-k>: go to prev sibling    |~
"                              |~
" ---------------------------- |~
" Filesystem mappings~         |~
" C: change tree root to the   |~
"    selected dir              |~
" u: move tree root up a dir   |~
" U: move tree root up a dir   |~
"    but leave old root open   |~
" r: refresh cursor dir        |~
" R: refresh current root      |~
" m: Show menu                 |~
" cd:change the CWD to the     |~
"    selected dir    

"                              |~
" ---------------------------- |~
" Tree filtering mappings~     |~
" I: hidden files (off)        |~
" f: file filters (on)         |~
" F: files (on)                |~
" B: bookmarks (off)           |~
"                              |~
" ---------------------------- |~
" Other mappings~              |~
" q: Close the NERDTree window |~
" A: Zoom (maximize-minimize)  |~
"    the NERDTree window       |~
" ?: toggle help               |~
"                              |~
" ---------------------------- |~
" Bookmark commands~           |~
" :Bookmark <name>             |~
" :BookmarkToRoot <name>       |~
" :RevealBookmark <name>       |~
" :OpenBookmark <name>         |~
" :ClearBookmarks [<names>]    |~
" :ClearAllBookmarks  

The Help Page (Picture)

TaskList

Install

wget http://www.vim.org/scripts/download_script.php?src_id=10388
cd ~/.vim/plugin
unzip ~/downloads/download_script.php\?src_id\=11834

Usage

Just type :TaskList in your vim command mode.
Or just set up some Keymappings.
TaskList will automatically detect lines that start with TODO: and stuff like that.
It is a good Tool for writing code.

TaskList Keymappings

Just add the following Lines to your ~/.vimrc so that you can access your TaskList using
the key [T]

# ~/.vimrc
map T :TaskList<CR>

DokuWiki Syntax

Install

- copy 'syntax/dokuwiki.vim' in your '~/.vim/syntax/' - enable by issuing ':set ft=dokuwiki'

wget http://www.vim.org/scripts/download_script.php?src_id=17561
mkdir ~/.vim/syntax/
mv dokuwiki.vim ~/.vim/syntax/

pythoncomplete - "Intellisense" for your VIM IDE!

Install

If the Plugin is not installed (locate vim | grep python | grep ftplugin ) just get it: First download it and then move the file into your ~/.vim/autoload or $VIMRUNTIME/autoload/

wget http://www.vim.org/scripts/download_script.php?src_id=10872
mv pythoncomplete.vim ~/.vim/autoload

Also add the following line to your .vimrc

autocmd FileType python set omnifunc=pythoncomplete#Complete

Usage

While editing a Python File you are now able to use the key commands:

  • Unordered List Item<CTRL>-<X>, <CTRL>-<O>

Mini Buf Explorer

As soon as you open your second file the MiniBufExplorer will appear on top.
Since having open more than 2 windows in vim is not very comfortable you can use
the MiniBufExplorer to access multiple files (buffers) in a very quick way.
If you already use NERDTree you don't really need the MiniBufExplorer though.

Install

(~) skull@dc:$ wget http://www.vim.org/scripts/download_script.php?src_id=3640
(~) skull@dc:$ mv download_script.php\?src_id\=3640 minibufexpl.vim
(~) skull@dc:$ mv minibufexpl.vim ~/.vim/plugin/

Also add the following line to your .vimrc:

let g:miniBufExplMapWindowNavVim = 1
let g:miniBufExplMapWindowNavArrows = 1
let g:miniBufExplMapCTabSwitchBufs = 1
let g:miniBufExplModSelTarget = 1

Usage

Use <CTRL>-<W>^k to switch to the MiniBufExplorer Window.
<TAB> and <SHIFT>-<TAB> move through the files.

vim/plugins.txt · Last modified: 2013/01/24 23:30 by skull@darktemple.ch