Browse Source

Consistency

master
Riyyi 6 years ago
parent
commit
9dd07e1160
  1. 16
      .config/vim/vimrc

16
.config/vim/vimrc

@ -115,13 +115,13 @@ function! CloseTab()
let currentFile = expand('%:t') let currentFile = expand('%:t')
if nerdTreeStatus if nerdTreeStatus
execute "NERDTreeClose" execute 'NERDTreeClose'
if currentFile !~# "NERD_tree" if currentFile !~# 'NERD_tree'
execute "bw "bufNr execute 'bw 'bufNr
execute "NERDTreeToggle" execute 'NERDTreeToggle'
endif endif
else else
execute "bw "bufNr execute 'bw 'bufNr
endif endif
endfunction endfunction
@ -129,10 +129,10 @@ function! PreventBuffersInNERDTree()
if bufname('#') =~ 'NERD_tree' && bufname('%') !~ 'NERD_tree' if bufname('#') =~ 'NERD_tree' && bufname('%') !~ 'NERD_tree'
\ && exists('t:nerdtree_winnr') && bufwinnr('%') == t:nerdtree_winnr \ && exists('t:nerdtree_winnr') && bufwinnr('%') == t:nerdtree_winnr
\ && &buftype == '' \ && &buftype == ''
let bufnum = bufnr('%') let bufNr = bufnr('%')
close close
execute 'b ' . bufnum execute 'b 'bufNr
execute ':NERDTree' execute 'NERDTreeToggle'
execute "normal! \<c-w>\<c-w>" execute "normal! \<c-w>\<c-w>"
endif endif
endfunction endfunction

Loading…
Cancel
Save