VIM recovery by default

I am very upset that I started working with VIM. I'm just trying to make some minor tweaks in a vimrc file. I made some minor changes, but they did not do what I hoped. So, I came back and deleted the lines that I added, returning to the original file. Now I can’t even get into VIM! When I enter "vim filename.xxx" from the terminal, I just go back to the command line. There is no error message, the file does not open, nothing. Like I just hit enter.

I tried uninstalling and reinstalling VIM, but the same results. Does anyone know what I can do to restore VIM to its original state? I am using Ubuntu 11.

+4
source share
2 answers

Try deleting the ~ / .vimrc and ~ / .viminfo files and the ~ / .vim directory. They usually contain configuration information, so getting rid of them should give you a fresh start.

+10
source

I would suggest first deleting, but cleaning, reinstalling and making sure that your local user changes are deleted.

  • Clear package configuration file files: sudo apt-get purge vim .
  • Clear any personalizations: rm -Rf ~/.vim ~/.vimrc ~/.viminfo .
  • Install Vim again: sudo apt-get install vim .
+14
source

Source: https://habr.com/ru/post/1382419/


All Articles