Hi guys, so I’m trying to learn to use vim (on the foot terminal emulator) and am running into a weird issue. When I open a file with syntax highlighting, it initially opens following my current terminal colour theme (top right terminal in the image below, you can see compared to fastfetch). Using the terminal colour theme like this is my desired behaviour. However, as soon as I press any key, the colour defaults to what I think might be standard 8 colour terminal colours (same file bottom right in the image below after pressing a random key). The only vim file I’ve modified from the defaults that come with the standard arch install is
/etc/vimrc
To which I’ve simply added:
xnoremap <C-C :w !wl-copy
:set number
Removing those does not seem to affect the behaviour, but I include them for completeness. Running vim -u NONE
obviously does not show this issue but also does not then show syntax highlighting in the first place. I have not been able to puzzle out where in the config files this colour behaviour is kept. If anyone can offer me pointers, I would be very grateful.
Terminal: Foot (in sway)
Shell: Fish
Vim packages installed: vim vim-runtime
Example image: