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

Editor: fix the Vim version detection #1356

Merged
merged 1 commit into from
Oct 26, 2024

Conversation

apocelipes
Copy link
Contributor

On Ubuntu, Vim's real name is 'vim.basic' (or 'vim.tiny', can be switched by update-alternatives):
vim

The editor version detection can not handle this name and returns an empty version string:
empty-vim-version

P.S. Dont use startWith("vim") because there're many commands have prefix 'vim' (e.g., vimdiff, vimtutor, vimdot, ...) but they are not editors and have completely different version formats (or even not support version options).

@CarterLi CarterLi merged commit 53e0861 into fastfetch-cli:dev Oct 26, 2024
15 checks passed
@apocelipes apocelipes deleted the fix-vim-version-detection branch October 26, 2024 03:14
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.

2 participants