如何将Vim重置为普通的香草安装? [英] How can I reset Vim back to a plain vanilla install?

查看:96
本文介绍了如何将Vim重置为普通的香草安装?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在~/.vim周围浮动了不匹配的插件文件;我在vim自身中遇到了损坏的行为,我的.vimrc.gvimrc都充满了我不了解的东西.

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.

示例:NERDTree插件在启动时显示两个相同的文件抽屉,.vimrc.gvimrc中的设置未显示出来.

Examples: NERDTree plugin displays two identical file drawers on start, settings in .vimrc and .gvimrc aren't manifesting themselves.

有什么办法可以完全重新安装" vim?或者,有没有办法我可以获取一个新的.vim文件夹,并从头开始创建表格?我想学习vim,但是安装所有这些插件很难.我只想从简单的香草安装开始.

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.

推荐答案

要从vim配置中删除所有内容,请删除整个.vim文件夹以及.vimrc文件中的所有内容.尽管将空文件保留在适当的位置,因为如果没有它,vim将默认以兼容模式启动,并且您几乎肯定不希望这样做.

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.

这篇关于如何将Vim重置为普通的香草安装?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆