我创建了一个git repo并将vim-plugins(由vundle安装)添加到其中,将这个repo推送到github,并将这个repo克隆到另一台服务器后,我发现vim-plugin的目录是空的,dirs和文件在vim-plugin 的目录全部丢失
如何生产它:
$ make a new test user in Linux, then ( su - test )
$ git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle # install vundle
$ echo "
set nocompatible
filetype off
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
Bundle 'gmarik/vundle'
Bundle 'Lokaltog/vim-powerline'
filetype plugin indent on
" >> .vimrc
$ vim # run vim command `:BundleInstall`
$ mkdir vimgitrepo && cd vimgitrepo && git init
$ cp -a ~/.vim/bundle .
$ git status
# On branch master
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# bundle/
nothing added to commit but untracked files present (use "git add" to track)
$ git add .
$ git status
# On branch master
# Changes to be committed:
# (use "git reset HEAD <file>..." to unstage)
#
# new file: bundle/vim-powerline
# new file: bundle/vundle
#
如您所见,仅添加了 dir。
$ git commit -m'test'
$ git push -u origin master
如果你在另一个地方克隆这个 repo,只存在空目录。
这是github页面