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 multiple filetypes as javscript,html and css #42

Merged
merged 3 commits into from
Jan 15, 2017
Merged

Add multiple filetypes as javscript,html and css #42

merged 3 commits into from
Jan 15, 2017

Conversation

breneser
Copy link
Contributor

@breneser breneser commented Jan 7, 2017

I actually don't know much about Vim script or plugins, not sure if there are any other caveats I need to consider, but I thought solution would easily be adding multiple file types. It seems to be working well for me.

breneser added 3 commits January 7, 2017 18:49
Vim plugings like autocomplete and snippets use filetypes to function,
hence this commit adds filetypes css,html and javascript
Vim plugings like autocomplete and snippets use filetypes to function,
hence this commit adds filetypes css,html and javascript.

This commit closes #41
@posva
Copy link
Owner

posva commented Jan 8, 2017

Can you tell me about something you cannot do without setting the ft to multiple?
I mean something very specific so I can test locally

@breneser
Copy link
Contributor Author

I use YouCompleteMe for autocomplete functionality. Which uses filetypes to populate autocomplete list. I can not see javascript autocomplete unless I set filetype to javascript. Which I can do by modifying my vimrc file, but thought it should be in the plugin for better integration.

@posva posva merged commit 078be5a into posva:master Jan 15, 2017
@adriaanzon
Copy link
Collaborator

This broke some FileType vue autocommands for me. Do I have to edit them to FileType vue.html.javascript.css or is there a better way to deal with this?

@posva
Copy link
Owner

posva commented Jan 22, 2017

@adriaanzon That's curious. I actually don't know if there's a better way of dealing with it. I don't know much about the compound filetypes. Maybe you can check if it's starts with vue

@adriaanzon
Copy link
Collaborator

autocmd FileType vue* seems to work fine, thanks for the suggestion 😃

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.

None yet

3 participants