vimperator / vimperator.vim

23 stars 3 forks source link

autocmd JavaScript syntax highlighting, fixes #3 #4

Closed ropery closed 7 years ago

ropery commented 8 years ago

Quick hack; works with the following,

au DOMLoad '^https?://' -js (function(){return true})();

:autocmd PageLoad .* javascript<<EOF
[1, 2]
EOF

:js <<EOF
function
EOF

javascript function
timss commented 7 years ago

I kind of forgot about this as I don't tend to fickle with my own Vimperator configuration these days. Looked over #3 again and both my own config as well as the code examples you and I provided back then seemed fine now, :js with : or not.

Sorry for the extreme delay, and thanks for submitting this patch.