From 362a11815002966e0c371b1ed141da93a893ff86 Mon Sep 17 00:00:00 2001 From: Dmitry Chumak Date: Mon, 8 Aug 2022 14:59:07 +0300 Subject: [PATCH] vim NERDTree plugin added --- vim/vimrc | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/vim/vimrc b/vim/vimrc index e3b8ab3..34cb4c9 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -23,6 +23,7 @@ call plug#begin('~/.vim/bundle') "Начать искать плагины в э Plug 'vim-airline/vim-airline' Plug 'Yggdroot/indentLine' Plug 'airblade/vim-gitgutter' + Plug 'preservim/nerdtree' call plug#end() "Перестать это делать " @@ -42,6 +43,17 @@ let g:gitgutter_override_sign_column_highlight = 1 highlight SignColumn ctermbg=none set updatetime=100 +" +" NERDTree plugin config +" +nnoremap n :NERDTreeFocus +nnoremap :NERDTree +nnoremap :NERDTreeToggle +nnoremap :NERDTreeFind +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 autocmd FileType yaml,yml setlocal ts=2 sts=2 sw=2 expandtab let g:indentLine_char = '⦙'