This commit is contained in:
TheK4n 2022-08-05 20:34:18 +03:00
parent d0c5b72959
commit 1616d9108a
2 changed files with 6 additions and 13 deletions

View File

@ -132,5 +132,6 @@ vim.opt.termguicolors = true
require("bufferline").setup{
options = {
mode = "tabs",
sort_by = "id"
}
}

View File

@ -56,22 +56,19 @@ let g:netrw_keepdir = 0
nnoremap <silent> <leader>n :NERDTreeToggle<CR>
nnoremap <leader>n :NERDTreeToggle<CR>
" Start NERDTree when Vim is started without file arguments.
autocmd StdinReadPre * let s:std_in=1
autocmd VimEnter * if argc() == 0 && !exists('s:std_in') | NERDTree | endif
" 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
" Close the tab if NERDTree is the only window remaining in it.
autocmd BufEnter * if winnr('$') == 1 && exists('b:NERDTree') && b:NERDTree.isTabTree() | quit | endif
" If another buffer tries to replace NERDTree, put it in the other window, and bring back NERDTree.
autocmd BufEnter * if bufname('#') =~ 'NERD_tree_\d\+' && bufname('%') !~ 'NERD_tree_\d\+' && winnr('$') > 1 |
\ let buf=bufnr() | buffer# | execute "normal! \<C-W>w" | execute 'buffer'.buf | endif
" Open the existing NERDTree on each new tab.
autocmd BufWinEnter * if getcmdwintype() == '' | silent NERDTreeMirror | endif
let NERDTreeMapOpenInTab='<ENTER>'
let NERDTreeCustomOpenArgs={'file':{'where': 't'}}
set ttimeoutlen=0 "Понижаем задержку ввода escape последовательностей
@ -270,11 +267,6 @@ let g:multi_cursor_skip_key = '<C-x>'
let g:multi_cursor_quit_key = '<Esc>'
" golang
" let g:go_def_mode='gopls'
" let g:go_info_mode='gopls'
au FileType py,go,c,cpp,objc,js call rainbow#load()
let g:rainbow_active = 1