August 29, 2024

Fedora 40 -- Vim downgrade

I have begun noticing a bug (or change) in vim. Namely cw eats up the space after a word.
I did this:
su
dnf erase vim
dnf erase vim-minimal
dnf install neovim
You run "neovim" as "nvim" -- doing that I verify that it has the old behavior.

I could use this as an excuse to switch to neovim, but I want to investigate using dnf to downgrade my current copy of vim.

dnf --showduplicates list vim-enhanced
vim-enhanced.x86_64                                                                  2:9.1.158-1.fc40
vim-enhanced.x86_64                                                                  2:9.1.672-1.fc40
Lookin at the dnf.log, it looks like 672 came along around 8-14 which is about right.
dnf install vim-enhanced-2:9.1.158-1.fc40
Indeed this works AND fixes the issue.

Note that there is a "dnf downgrade vim" command -- but it expects the package to be installed, since I had already erased it, this was not useful to me.

What will happen now when new vim versions show up? Probably (hopefully?) I will get upgraded AND they will fix this bug.

A week later

Actually the next day, my autoupdate script ran and put version 672 right back. I will have to do something to tell DNF that I don't want vim to be updates. Now vim is on to version 9.1.703 and the bug is still present. I did some searching and found: This was back in 2019. The following suggestion was made:
:map cw dwi
This gives a hint for the current problem. I actually want cw to be identical to ce, which is the original behavior. So a fix for the problem I am currently annoyed about is:
:map cw ce

Have any comments? Questions? Drop me a line!

Adventures in Computing / tom@mmto.org