-
Notifications
You must be signed in to change notification settings - Fork 25
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 default filetype #26
base: master
Are you sure you want to change the base?
Conversation
Thanks for the contribution. I'm not entirely sure this dot notation is correct. Can you point to VIM documentation somewhere explaining how it is supposed to work? |
Of course, here it is ➡️ VimDoc
|
Thanks for that link. If the default VIM filetype is |
It might be before the vim support #15 Indeed it is better to change it You can see the defaults :echo glob($VIMRUNTIME . '/ftplugin/*.vim')
:echo glob($VIMRUNTIME . '/syntax/*.vim') |
I just did a pretty complete code review and don't see anywhere else in this plugin it even needs changing. Can you just make these two lines read |
After that we'll need one more commit that renames the files and add symlinks. If you like you can cherry pick this commit into your branch (or I can push it) after you fix the thing in my previous comment. Katkıda bulunduğun için teşekkür ederim. |
That is indeed our doing. The reason we have a different filetype is the same as why vim-pandoc uses |
@fmoralesc Hum. I'm going to have to sleep on this here, I'm not sure we're doing this right. That actually makes sense, and yet it seems like that shouldn't be what we need to do. |
@fmoralesc Two questions.
|
@fmoralesc I think we need to resolve this, it's still tripping people up and seems wrong to me still. Any feedback on my #2 question above? |
The difference between filetype This leads to the user having to switch manually between the different filetypes. After switching from In the directory
Note that I use I don't think this is a permanent solution and it might cause something to break but I haven't run into problems yet. I will report back if I do. The best solution would of course be that this plugin uses the Update: This commit fixes this issue so no need for the hacky solution. |
Default filetype is rmd for that reason I added rmd before rmarkdown to fix compatibility issues with any other plugin uses the default. But I don't know if this plugin fails for any significant reason with that change. I have tried and so far it works very fine in general