New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use sparkup on other file extensions / types #33
Comments
Same question here. I'm not managing to get it to work on filetype=htmldjango with Vim. Any clues? (on plain html works fine) |
Ok, copying |
Another thing that worked was to set the filetype for *.mustache to mustache.html |
to avoid copying files you can create new " ftplugin/htmldjango.vim
runtime! ftplugin/html/sparkup.vim or you can add an auto command to your augroup sparkup_types
" Remove ALL autocommands of the current group.
autocmd!
" Add sparkup to new filetypes
autocmd FileType mustache,php,htmldjango runtime! ftplugin/html/sparkup.vim
augroup END I would fork the project and add the auto command to the sparkup plugin but I think this plugin was abandoned... (since the author isn't replying to any issue) |
I tried the lines above but they cause recursive
|
@kitmonisit by using |
@millermedeiros Thanks for the resource! I pull my hair around Vim scripting :P |
@millermedeiros Tried pasting your snippet in my .vimrc but it causes an error for me: Error detected while processing /Users/rene/.vimrc:
line 13:
E216: No such group or event: " Remove ALL autocommands for the current group.
Press ENTER or type command to continue |
@rhardih try moving the comment to another line and/or deleting it, that might be the problem. (I just updated the snippet) |
@millermedeiros Sweet, it was the comment. Works now. |
hello, is it solved? sorry but, i have tried to write the code above at my _vimrc file but it didn't work in my *.tmpl file, anyone can help? |
Is it possible for someone to create a PR with this behaviour? I think it would be useful for the general populace. |
There's an approach in @MarcWeber's fork, where you have a configuration variable to list the filetypes. #33 (comment) should work. |
I am using this very simple solution to enable sparkup in my jsx files:
|
@gkop this is exactly what I was looking for. thanks mate! 👍 |
How would I wire this up to work in other file types, such as .mustache?
The text was updated successfully, but these errors were encountered: