Skip to content

Add support for vue templates - #136

Open
johnfraney wants to merge 1 commit into
rstacruz:masterfrom
johnfraney:vue-support
Open

Add support for vue templates#136
johnfraney wants to merge 1 commit into
rstacruz:masterfrom
johnfraney:vue-support

Conversation

@johnfraney

Copy link
Copy Markdown

Adds the vue filetype to the vim plugin

@wbeyda

wbeyda commented May 28, 2017

Copy link
Copy Markdown

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

@jestin

jestin commented Aug 26, 2017

Copy link
Copy Markdown

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

@wbeyda

wbeyda commented Aug 26, 2017

Copy link
Copy Markdown

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

@jestin

jestin commented Aug 28, 2017

Copy link
Copy Markdown

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

wbeyda commented Aug 28, 2017

Copy link
Copy Markdown

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