A follow up to my other question here: Problem using gdb with vim over ssh
I was messing around trying to get my issues over ssh fixed, and I don't know what I did but now vim doesn't show any colour when I open a
.c file I am working on
If I just type in
vim there is colour in the default screen that pops up, but when I open the
.c file it's just white text on black background. If I enable line numbers using
:set number, the line number itself comes out in yellow, but the file contents are still black and white. I don't know what I did but I'd like everything to go back to what it was like before I started changing anything. I have restarted the raspberry pi and reinstalled vim using
apt-get install vim --reinstall but nothing helped.
Is there a master reset method? How do I get vim to change everything back to factory default? In the home folder (
~) I only have these files possibly related to vim:
.viminfo (very large file and has lots of things, but looks like it's only file and command history, and not any settings),
.vimrc (I had added
set number to this file initially but I deleted it after my problem started happening. Currently this file is completely empty, which is how it was before). I don't see a
.vim folder in
~, as some posts that result form a google search seem to indicate should be there. I am using raspberry pi OS on raspberry pi zero.