我正在尝试安装 utilsnips .
当我输入:
cd ~/.vim/
git submodule add https://github.com/SirVer/ultisnips bundle/ultisnips
我收到这条消息:
You need to run this command from the toplevel of the working tree.
为什么?我怎样才能避免它?
最佳答案
您的 .vim
目录可能不是 git
目录。使其成为 git
目录简单:
git init
然后你可以运行:
git submodule add https://github.com/SirVer/ultisnips bundle/ultisnips
关于vim - 您需要从工作树的顶层运行此命令,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18942629/