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

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

问题描述

我在 ~/.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,但是安装所有这些插件很难.我只想从简单的 vanilla 安装开始.

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.

提前感谢您的帮助.

推荐答案

要从 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 重置为普通的 vanilla 安装?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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