如何卸载由git clone命令安装的已删除文件? [英] How do you uninstall deleted files installed by git clone command?

查看:1145
本文介绍了如何卸载由git clone命令安装的已删除文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我听说 vim 的真棒​​,所以自然我说vim me up。之后,无数的Youtube视频和谷歌搜索几个小时,我准备安装我的插件(所以我认为)。我可以安装 NERDTree 病原体 和I对我自己感觉很好,因为我是新手 Mac(OSX 10.9) ,并且一般编码。于是,我开始使用来自 Snipmate -snipmaterel =nofollow> https://github.com/garbas/vim-snipmate

% cd ~/.vim/bundle
% git clone https://github.com/tomtom/tlib_vim.git
% git clone https://github.com/MarcWeber/vim-addon-mw-utils.git
% git clone https://github.com/garbas/vim-snipmate.git
% git clone https://github.com/honza/vim-snippets.git

Snipmate无法使用。因此,我通过rm -rf {directories}
删除了这些目录,然后尝试使用 http://spf13.com/post/vim-plugins-sipipins 这一次

Snipmate did not work. So, I deleted these directories by rm -rf {directories} then tried to install it again using instructions from http://spf13.com/post/vim-plugins-snipmate this time

cd ~/.vim
mv snippets snippets.orig
git clone git://github.com/scrooloose/snipmate-snippets.git snippets

也许我不应该这样做,因为我每次打开vim都会出现这些错误。

Maybe I shouldn't have done since I now have these errors everytime I open vim.


Warning in snipMate.vim: Snippet c) is already defined. See :h multi_snip for help on snippets with multiple matches.
Warning in snipMate.vim: Snippet date is already defined. See :h multi_snip for help on snippets with multiple matches.
Warning in snipMate.vim: Snippet ddate is already defined. See :h multi_snip for help on snippets with multiple matches.

你认为如果我可以卸载那些已删除的文件,是否可以摆脱这些错误,或许snipmate会起作用?
如何卸载git clone命令?我是否正确地考虑这些?

Do you think if I could uninstall those files, that I had deleted, would it rid of these errors and maybe snipmate would work? How do you uninstall git clone command? Am I right in thinking these?

推荐答案

这是因为您仍然有在snippets.orig中定义的片段。如果你删除该文件夹(或者如果你想保持它移动到.vim以外的目录),你应该没问题。

That's because you still have the snippets defined in "snippets.orig". If you delete the folder (or if you want to keep it move it to a directory outside of .vim) and you should be fine.

这篇关于如何卸载由git clone命令安装的已删除文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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