Skip to content
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

Add support for vue templates #136

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add support for vue templates #136

wants to merge 1 commit into from

Conversation

johnfraney
Copy link

Adds the vue filetype to the vim plugin

@wbeyda
Copy link

wbeyda commented May 28, 2017

Annoying that I can't use sparkup in .vue files because there is no difference between them and HTML tags.

@jestin
Copy link

jestin commented Aug 26, 2017

For what it's worth, I'd find this useful

@wbeyda
Copy link

wbeyda commented Aug 26, 2017

I thought I submitted my PR for this. It was one line in and super easy I remember.

@jestin
Copy link

jestin commented Aug 28, 2017

For anyone finding this PR while looking for a solution, here's a simple workaround:

  1. cd to the ftplugin directory of the sparkup plugin (will vary, depending on how you installed sparkup)
  2. run ln -s html vue

This creates a vue symbolic link to the existing html directory. Now *.vue files will activate the sparkup plugin.

It would still be better if vue files were added by default, as this PR would do.

@wbeyda
Copy link

wbeyda commented Aug 28, 2017

Make a vue.vim file in the ftdetect directory and add this line to it.

+au BufNewFile,BufRead *.vue set filetype=html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants