sodapopcan / vim-twiggy

Git branch management for Vim
282 stars 16 forks source link

Autocmd Event #16

Closed weilbith closed 6 years ago

weilbith commented 6 years ago

I'd like to establish an autocommand when the twiggy buffer get opened. Unfortunately I can't find an event that gets thrown to do so. As file pattern I use * cause it feels easier to check for the filetype. Anyways, if I add an autocmd without any filter which just use echom and try it for all event listed in h autocmd-events, I never get an entry after open :Twiggy when I have a look at :messages. I'm confused about this. What am I doing wrong?

sodapopcan commented 6 years ago

Does the FileType event not work for you?

autocmd FileType twiggy echom "Twiggy open"
weilbith commented 6 years ago

Oh damn. That was something I could know/tried. :see_no_evil: Sorry for wasting your time and thank you very much!

sodapopcan commented 6 years ago

Hey no, prob—we're all learning here!