vim NERDTree plugin added
This commit is contained in:
12
vim/vimrc
12
vim/vimrc
@@ -23,6 +23,7 @@ call plug#begin('~/.vim/bundle') "Начать искать плагины в э
|
|||||||
Plug 'vim-airline/vim-airline'
|
Plug 'vim-airline/vim-airline'
|
||||||
Plug 'Yggdroot/indentLine'
|
Plug 'Yggdroot/indentLine'
|
||||||
Plug 'airblade/vim-gitgutter'
|
Plug 'airblade/vim-gitgutter'
|
||||||
|
Plug 'preservim/nerdtree'
|
||||||
call plug#end() "Перестать это делать
|
call plug#end() "Перестать это делать
|
||||||
|
|
||||||
"
|
"
|
||||||
@@ -42,6 +43,17 @@ let g:gitgutter_override_sign_column_highlight = 1
|
|||||||
highlight SignColumn ctermbg=none
|
highlight SignColumn ctermbg=none
|
||||||
set updatetime=100
|
set updatetime=100
|
||||||
|
|
||||||
|
"
|
||||||
|
" NERDTree plugin config
|
||||||
|
"
|
||||||
|
nnoremap <leader>n :NERDTreeFocus<CR>
|
||||||
|
nnoremap <C-n> :NERDTree<CR>
|
||||||
|
nnoremap <C-t> :NERDTreeToggle<CR>
|
||||||
|
nnoremap <C-f> :NERDTreeFind<CR>
|
||||||
|
highlight VertSplit cterm=none
|
||||||
|
" Exit Vim if NERDTree is the only window remaining in the only tab.
|
||||||
|
autocmd BufEnter * if tabpagenr('$') == 1 && winnr('$') == 1 && exists('b:NERDTree') && b:NERDTree.isTabTree() | quit | endif
|
||||||
|
|
||||||
" YAML files config
|
" YAML files config
|
||||||
autocmd FileType yaml,yml setlocal ts=2 sts=2 sw=2 expandtab
|
autocmd FileType yaml,yml setlocal ts=2 sts=2 sw=2 expandtab
|
||||||
let g:indentLine_char = '⦙'
|
let g:indentLine_char = '⦙'
|
||||||
|
|||||||
Reference in New Issue
Block a user