vim-detailed
vim-detailed copied to clipboard
Smart Here-docs
Idea from anoldhacker:
eval <<RUBY
this_should_look(:like, :ruby).code
RUBY
run_sql <<SQL
select * from foo
SQL
…etc.
This much could just directly map the downcased token to 'filetype'
Another aspect is that:
`cat /tmp/hihi`
…should be ft=shell
http://blogs.perl.org/users/ovid/2011/06/syntax-highlight-your-sql-heredocs-in-vim.html