How can I reset Vim back to a plain vanilla install?
Solution 1
To remove everything from your vim configuration remove the entire .vim
folder as well as everything from your .vimrc
file. Keep the empty file in place though because without it vim will start in compatible mode by default and you almost certainly don't want that.
Note that there are system-wide files that are not stored in your home directory but if you haven't tweaked any of those then the above steps are all you need to do.
Solution 2
cd
mv .vimrc .vimrc-old
mv .vim .vim-old
touch .vimrc
mkdir .vim
Solution 3
I know this is a bit old question but there is another useful command you can use mv ~/.viminfo ~/.oldviminfo
Related videos on Youtube
element119
I do HTML, CSS, JavaScript/jQuery, PHP & frameworks, MySQL, Python, Flask, Jinja2, Ruby, Rails, Objective-C, iOS, Cocoa, C, C#, C++, Visual Basic, and all the other things I find interesting. I especially like web engineering though.
Updated on July 15, 2022Comments
-
element119 almost 2 years
I have mismatched plugin files floating around
~/.vim
; I am experiencing a corrupted behavior within vim itself, and both my.vimrc
and.gvimrc
are filled with things I don't understand.Examples: NERDTree plugin displays two identical file drawers on start, settings in
.vimrc
and.gvimrc
aren't manifesting themselves.Is there any way that I can completely "re-install" vim? Or, is there a way that I can get a new
.vim
folder, and start over form scratch? I want to learn vim, but it's hard with all these plugins installed. I just want to start with a plain vanilla installation.Thanks for any help in advance.
-
Facundo Casco over 12 yearscan't you just move or remove everything on
~/.vim
and ~/.vimrc? -
element119 over 12 yearsIf I just deleted everything in
~.vim
, would that break vim, or would it just reset itself? I have no idea, that's why I'm asking. -
FrustratedWithFormsDesigner over 12 yearsMaybe this should be migrated to superuser.com/questions ? VIM-related questions always seem to have the possibility to be appropriate there as well as here...
-
-
element119 over 12 yearsOk, thanks- but what happens if I then want to install a plugin? Do I just create new directories in
~/.vim
? -
rampion over 12 yearsand then
touch .vimrc; mkdir .vim