Ok this is a weird problem. I am using gvim and I wanted to edit the gvimrc so I opened with
sudo gvim gvimrc and it looks nice but when I open it normally by typing only gvim it looks different.
This is how it looks when I start with sudo:
This is how it looks when I start it normally:
Why is this happening?
First, /usr/share/vim/
is where Vim's system-wide runtime files are stored. That directory is off-limits: you have no business adding, changing, or removing anything in there.
Copy /usr/share/vim/gvimrc
to its normal location:
$ sudo cp /usr/share/vim/gvimrc ~/.gvimrc
Remove everything you have added manually to /usr/share/vim/gvimrc
in order to revert to its pristine state.
Remove everything from ~/.gvimrc
that you didn't put yourself back when the file was in /usr/share/vim/
.
Once you are done, you should have the exact opposite of what you currently have:
gvim
,sudo gvim
, which should be useless anyway.Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments