I want to write some autocmd's that check if the filename is this or that..
I've been trying:
autocmd VimEnter * if % is "preamble" | Explore | endif
autocmd VimEnter * if %=="preamble" | Explore | endif
autocmd VimEnter * if &filename == "preamble" | Explore | endif
but none of this works?
WHat should I do?
(this example is over-simplified, note that I'd also like to have an else statement).
BufNew
to make it work – Whipautocmd BufEnter * if bufname("%") !=? '-MiniBufExplorer-' | colorscheme default | endif
– Prairie