mirror of
https://github.com/italicsjenga/dotfiles.git
synced 2024-11-27 19:41:30 +11:00
Added Vim NERDTree + NERDTree Git plugin
This commit is contained in:
parent
5cc28a369e
commit
b5a2668a97
1
vim/.vim/bundle/nerdtree
Submodule
1
vim/.vim/bundle/nerdtree
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 0b44415a3302030b56755cc1135ca9ca57dc1ada
|
1
vim/.vim/bundle/nerdtree-git-plugin
Submodule
1
vim/.vim/bundle/nerdtree-git-plugin
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 932552ee295971cfb202c3b360319cb56e4ba6f0
|
21
vim/.vimrc
21
vim/.vimrc
|
@ -20,6 +20,8 @@ call vundle#begin()
|
||||||
Plugin 'gmarik/Vundle.vim'
|
Plugin 'gmarik/Vundle.vim'
|
||||||
Plugin 'bling/vim-airline'
|
Plugin 'bling/vim-airline'
|
||||||
Plugin 'whatyouhide/vim-gotham'
|
Plugin 'whatyouhide/vim-gotham'
|
||||||
|
Plugin 'scrooloose/nerdtree'
|
||||||
|
Plugin 'Xuyuanp/nerdtree-git-plugin'
|
||||||
" All of your Plugins must be added before the following line
|
" All of your Plugins must be added before the following line
|
||||||
call vundle#end() " required
|
call vundle#end() " required
|
||||||
filetype plugin indent on " required
|
filetype plugin indent on " required
|
||||||
|
@ -42,3 +44,22 @@ let g:airline_powerline_fonts = 1
|
||||||
let g:airline#extensions#tabline#enabled = 1
|
let g:airline#extensions#tabline#enabled = 1
|
||||||
|
|
||||||
set hidden
|
set hidden
|
||||||
|
|
||||||
|
let g:NERDTreeIndicatorMapCustom = {
|
||||||
|
\ "Modified" : "✹",
|
||||||
|
\ "Staged" : "✚",
|
||||||
|
\ "Untracked" : "✭",
|
||||||
|
\ "Renamed" : "➜",
|
||||||
|
\ "Unmerged" : "═",
|
||||||
|
\ "Deleted" : "✖",
|
||||||
|
\ "Dirty" : "✗",
|
||||||
|
\ "Clean" : "✔︎",
|
||||||
|
\ "Unknown" : "?"
|
||||||
|
\ }
|
||||||
|
|
||||||
|
autocmd vimenter * NERDTree
|
||||||
|
autocmd StdinReadPre * let s:std_in=1
|
||||||
|
autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif
|
||||||
|
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTreeType") && b:NERDTreeType == "primary") | q | endif
|
||||||
|
map <C-n> :NERDTreeToggle<CR>
|
||||||
|
let NERDTreeShowHidden=1
|
||||||
|
|
Loading…
Reference in a new issue