1

我听说了 的真棒vim,所以我很自然地说“vim me up”。之后,无数的 Youtube 视频和几个小时的谷歌搜索,我准备安装我的插件(所以我想)。我能够通过安装NERDTreePathogen并且我对自己感觉良好,因为我是新手Mac(OSX 10.9)并且一般都在编码。所以,然后我继续Snipmate使用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-snipmate中的说明再次安装它

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

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

snipMate.vim 中的警告:片段 c) 已定义。有关具有多个匹配项的片段的帮助,请参阅 :h multi_snip。
snipMate.vim 中的警告:片段日期已定义。有关具有多个匹配项的片段的帮助,请参阅 :h multi_snip。
snipMate.vim 中的警告:片段 ddate 已定义。有关具有多个匹配项的片段的帮助,请参阅 :h multi_snip。

你认为如果我可以卸载那些我已经删除的文件,它会消除这些错误,也许 snipmate 会起作用吗?你如何卸载 git clone 命令?我这样想对吗?

4

1 回答 1

0

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

于 2014-08-12T15:12:25.443 回答