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

cfm filetype conflicts with vim's ColdFusion filetype #146

Closed
harriott opened this issue Aug 2, 2022 · 4 comments
Closed

cfm filetype conflicts with vim's ColdFusion filetype #146

harriott opened this issue Aug 2, 2022 · 4 comments
Labels
done improvement New feature or request

Comments

@harriott
Copy link

harriott commented Aug 2, 2022

bug

Opening a *.cfm configuration file in vim gets it recognised as a ColdFusion configuration file, with subsequent incorrect syntax highlighting.

where this happens

In filetype.vim, *.cfm is identified as filetype cf, with syntax highlighting as per cf.vim (for ColdFusion Markup Language).

suggested fix

Convert all of your *.cfm configuration files to something unused elsewhere, such as *.clifm.

reason

We can then write a filetype plugin for your configuration files - I've begun one - vim-clifm.

@leo-arch
Copy link
Owner

leo-arch commented Aug 2, 2022

Hy @harriott, thanks for reporting! I have already noticed this conflict, but didn't thought it might cause this kind of issue. Changing this should take only a few minutes, no problem. The only drawback would be backwards compatibility. Let me think of a way to handle this appropriately (maybe a command line switch). I'll let you know.

Btw, thanks for vim-clifm, that's cool!

@leo-arch
Copy link
Owner

leo-arch commented Aug 3, 2022

Hi @harriott. The transition to .clifm config files is ready. Please give it a try: it should be pretty smooth. Old config files will be automatically renamed (after asking the user) using the new file extension.

Now it only remains to fix whatever is broken because of this change. Hope it's not much.

@leo-arch leo-arch added the improvement New feature or request label Aug 4, 2022
@harriott
Copy link
Author

harriott commented Aug 4, 2022

Wow, that was quick. I switched to AUR's clifm-git, which got me CliFM v1.6.1 with your change over to *.clifm. All working, and I've updated vim-clifm accordingly.

@leo-arch
Copy link
Owner

leo-arch commented Aug 4, 2022

Perfect. Closing then and thanks again @harriott!

@leo-arch leo-arch closed this as completed Aug 4, 2022
@leo-arch leo-arch added the done label Apr 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
done improvement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants