You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### How can I close Vim or a tab automatically when NERDTree is the last window?
152
152
153
+
Because of the changes in how Vim handles its `autocmd` and layout locking `quit` command is no longer available in Vim9 auto commands, Depending on which version you're running selectone of these solutions.
154
+
155
+
__NeoVim users should be able to choose either one of them!__
156
+
157
+
#### Vim9
158
+
159
+
```vim
160
+
" Exit Vim if NERDTree is the only window remaining in the only tab.
0 commit comments