diff options
Diffstat (limited to '.config/nvim')
-rwxr-xr-x | .config/nvim/init.vim | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 8e4c33c..274c185 100755 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim | |||
@@ -161,6 +161,9 @@ autocmd BufRead,BufWrite * if ! &bin | silent! %s/\s\+$//ge | endif | |||
161 | 161 | ||
162 | " Close vim if the only window left open is NERDTree | 162 | " Close vim if the only window left open is NERDTree |
163 | autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif | 163 | autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif |
164 | " Close vim if the only window left open is a quickfix window | ||
165 | autocmd WinEnter * if winnr("$") == 1 && &buftype == "quickfix" | q | endif | ||
166 | " winnr("$") how many windows left? | ||
164 | 167 | ||
165 | " Resize all windows proportionally when the terminal is resized | 168 | " Resize all windows proportionally when the terminal is resized |
166 | " let terminal resize scale the internal windows | 169 | " let terminal resize scale the internal windows |