How can I configure vim to use the same syntax highlighting for Thor as it does for ruby? When I'm editing a *.thor file, I can use :set syntax=ruby
, which works, but is not permanent. Is there a way to do something in my .vimrc file to conditionally set the syntax to ruby if it's *.thor? Maybe create a thor syntax file and inherit from ruby?
Ruby-like Syntax Highlighting in VIM for Thor
1.5k Views Asked by Peter Brown At
2
I think should suffice... maybe this if you want to customize it later:
and copy ruby .vim syntax highlight file to
$HOME/.vim/syntax/thor.vim