Permalink
Browse files

Add nerdtree plugin.

  • Loading branch information...
1 parent 44ce9ce commit 8a70061c19bfd82fb375baf8268d673b626aeadb Joseph Jiang committed Nov 21, 2011
Showing with 16 additions and 6 deletions.
  1. +7 −4 .gitmodules
  2. +8 −2 .vimrc
  3. +1 −0 bundle/nerdtree
View
@@ -35,8 +35,11 @@
path = bundle/taglist
url = git://github.com/vim-scripts/taglist.vim.git
[submodule "bundle/command-t"]
- path = bundle/command-t
- url = git://github.com/wincent/Command-T.git
+ path = bundle/command-t
+ url = git://github.com/wincent/Command-T.git
[submodule "bundle/tagbar"]
- path = bundle/tagbar
- url = https://github.com/majutsushi/tagbar.git
+ path = bundle/tagbar
+ url = git://github.com/majutsushi/tagbar.git
+[submodule "bundle/nerdtree"]
+ path = bundle/nerdtree
+ url = git://github.com/scrooloose/nerdtree.git
View
@@ -62,8 +62,10 @@ highlight TabLineFill ctermbg=green
highlight TabLineSel ctermbg=red
" Set F1-F12 shortcut keys.
-map <silent> <F1> :TlistToggle<CR>
+nnoremap <silent> <F1> :NERDTree<CR>
+map <silent> <F2> :TagbarToggle<CR>
map <F3> oecho "<pre>";print_r($);exit;<Esc>F$a
+map <silent> <F4> :TlistToggle<CR>
map <F5> <Esc>:EnableFastPHPFolds<Cr>
map <F6> <Esc>:EnablePHPFolds<Cr>
map <F7> <Esc>:DisablePHPFolds<Cr>
@@ -94,11 +96,15 @@ autocmd BufNewFile *.html exe "1," . 10 . "g/name=\"created\" content=\".*\"/s//
autocmd BufWritePre,FileWritePre *.html exe "1," . 10 . "g/name=\"modified\" content=\".*\"/s//name=\"modified\" content=\"" .strftime("%c"). "\""
" TagList plugin.
-let Tlist_Auto_Open = 1
+let Tlist_Auto_Open = 0
let Tlist_Show_One_File = 1
let Tlist_Exit_OnlyWindow = 1
let Tlist_Use_Right_Window = 1
+" Tagbar plugin.
+let g:tagbar_ctags_bin = 'ctags'
+let g:tagbar_width = 30
+
" PHP Documentation plugin.
inoremap <C-K> <ESC>:call PhpDocSingle()<CR>i
nnoremap <C-K> :call PhpDocSingle()<CR>
Submodule nerdtree added at 30f6bc

0 comments on commit 8a70061

Please sign in to comment.