如何卸载git clone命令安装的已删除文件?

时间:2023-01-15 10:18:55

I heard about the awesomeness of vim, so naturally I said "vim me up". After, countless Youtube videos and Googling for hours, I was ready to install my pluggins ( so I thought). I was able to install NERDTree thru Pathogen and I was feeling good about myself since I'm new to Mac(OSX 10.9) and coding in general. So, I then proceeded to install the next pluggin Snipmate using instructions from https://github.com/garbas/vim-snipmate

我听说过vim非常棒,所以我自然会说“vim me up”。之后,无数的Youtube视频和谷歌搜索了几个小时,我准备安装我的插件(所以我想)。我能够通过Pathogen安装NERDTree,因为我是Mac(OSX 10.9)的新手和编码,所以我对自己感觉良好。所以,我接着使用https://github.com/garbas/vim-snipmate中的说明安装下一个插件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 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

Snipmate没有用。所以,我通过rm -rf {directories}删除了这些目录,然后尝试使用http://spf13.com/post/vim-plugins-snipmate这次的说明再次安装它

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

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

也许我不应该这样做,因为我每次打开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.

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?

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

1 个解决方案

#1


0  

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.

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

#1


0  

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.

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