fmoralesc / vim-tutor-mode

interactive tutorials for vim
84 stars 4 forks source link

Ignore file extension if given #16

Closed ghost closed 9 years ago

ghost commented 9 years ago

:Tutor example.tutor throws an error despite example.tutor existing, while :Tutor example works.

Perhaps if the argument ends in .tutor, then open that instead.

fmoralesc commented 9 years ago

:+1:

fmoralesc commented 9 years ago

Fixed. Should we allow passing arbitrary paths too? (I think not, but wanted to know what you think).

ghost commented 9 years ago

Should we allow passing arbitrary paths too

I don't think so. If users want to open a tutor file then they can just use :e and let the ftdetect/plugin take effect.