From 9dd07e1160d881b86d7ab9ba9a17b42cf4d48c01 Mon Sep 17 00:00:00 2001 From: Riyyi Date: Sat, 1 Dec 2018 17:36:28 +0100 Subject: [PATCH] Consistency --- .config/vim/vimrc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.config/vim/vimrc b/.config/vim/vimrc index c0f9445..be75ac1 100644 --- a/.config/vim/vimrc +++ b/.config/vim/vimrc @@ -115,13 +115,13 @@ function! CloseTab() let currentFile = expand('%:t') if nerdTreeStatus - execute "NERDTreeClose" - if currentFile !~# "NERD_tree" - execute "bw "bufNr - execute "NERDTreeToggle" + execute 'NERDTreeClose' + if currentFile !~# 'NERD_tree' + execute 'bw 'bufNr + execute 'NERDTreeToggle' endif else - execute "bw "bufNr + execute 'bw 'bufNr endif endfunction @@ -129,10 +129,10 @@ function! PreventBuffersInNERDTree() if bufname('#') =~ 'NERD_tree' && bufname('%') !~ 'NERD_tree' \ && exists('t:nerdtree_winnr') && bufwinnr('%') == t:nerdtree_winnr \ && &buftype == '' - let bufnum = bufnr('%') + let bufNr = bufnr('%') close - execute 'b ' . bufnum - execute ':NERDTree' + execute 'b 'bufNr + execute 'NERDTreeToggle' execute "normal! \\" endif endfunction