Sometimes I want to open vim in preparation of opening a file in the directory tree.
So i start it without a file:
vim
Then I use a map to open NERDTree:
:NERDTreeFind<CR>
This fails with
NERDTree: no file for the current buffer
OK so this is perhaps a deficiency in the plugin, and I want to add a check (either to use inside my bind, or to PR upstream to handle this edge case for the plugin).
How do I check that I am in a [No Name]
buffer? @%
? :f
?