作者bootleq (打架金剛)
看板Editor
標題Re: [vim ] 使用git submodules跟pathogen同步plugin
時間Thu Sep 8 21:58:11 2011
1. dropbox 可能比 github 方便,至少比較容易不公開
到 dropbox 建個目錄,例如
cd /dropbox/repository/bare/
git init --bare dotfiles
再到放設定的 repository 改 .git/config
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = /dropbox/repository/bare/dotfiles
[branch "master"]
remote = origin
merge = refs/heads/master
以後在這 push 就會進 dropbox 啦
2. 要記得寫 .gitignore
Vim 的 swp、session、undofiles 等等,最好不要上傳到外面
3. vundle 可能比 pathogen 方便
不必備份 submodule 的東西,只要管好 vimrc,做 :BundleInstall 即可
註:我沒用過 pathogen 所以不大確定它的情況
4. symbolic link 在 windows 上不能用
最好還是寫個 install script 吧
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 114.37.96.151
1F:→ wulawu:我也用dropbox省了很多麻煩,.bashrc之類的也都放上去 09/09 00:34
2F:推 upyours:這篇看起來比我上一篇更簡單,推薦這方法! 09/09 14:14
3F:→ bootleq:怒 週五 dropbox 沒傳完我就關機,現在 repo 爛掉了 09/10 17:50