diff options
Diffstat (limited to 'nvim/autocmd.vim')
| -rw-r--r-- | nvim/autocmd.vim | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/nvim/autocmd.vim b/nvim/autocmd.vim index 4e33bf0..2b35834 100644 --- a/nvim/autocmd.vim +++ b/nvim/autocmd.vim | |||
| @@ -1 +1,8 @@ | |||
| 1 | autocmd FileType html,css EmmetInstall | 1 | autocmd FileType html,css EmmetInstall |
| 2 | |||
| 3 | " Start NERDTree when Vim is started without file arguments. | ||
| 4 | autocmd StdinReadPre * let s:std_in=1 | ||
| 5 | autocmd VimEnter * if argc() == 0 && !exists('s:std_in') | NERDTree | endif | ||
| 6 | |||
| 7 | " Close the tab if NERDTree is the only window remaining in it. | ||
| 8 | autocmd BufEnter * if winnr('$') == 1 && exists('b:NERDTree') && b:NERDTree.isTabTree() | quit | endif | ||
