Skip to content

Commit 1e1f98b

Browse files
committed
Fixed syntax error
1 parent 82649ea commit 1e1f98b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.vimrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ map <C-\> :NERDTreeToggle<CR>
7878
autocmd StdinReadPre * let s:std_in=1
7979
autocmd VimEnter * if argc() == 0 && ! exists("s:std_in") | NERDTree | endif
8080
" close vim if the only window left open is NERDTree
81-
autocmd bufenter * if (winnr("?") == 1 && exists("b:NERDTree")
81+
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree")
8282
\ && b:NERDTree.isTabTree()) | q | endif
8383
let NERDTreeShowHidden=1 " show hidden file by default
8484
let NERDTreeIgnore=['.git$[[dir]]', '.swp', '.DS_Store']

0 commit comments

Comments
 (0)