-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
38 lines (31 loc) · 1.03 KB
/
README
File metadata and controls
38 lines (31 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
http://vimcasts.org/episodes/synchronizing-plugins-with-git-submodules-and-pathogen/
Installation:
git clone git://github.com/vfrank66/dotvim.git ~/.vim
Create symlinks (if needed):
ln -s ~/dotfiles/vimrc ~/.vimrc
ln -s ~/dotfiles/gvimrc ~/.gvimrc
Git Initialization:
cd ~/.vim
git init
Add all files in the directory and then Commit:
git add .
git commit -m "Initial commit"
In order to keep third party git ropositories in my git repository use git submodules:
cd ~/.vim
mkdir ~/.vim/bundle
git submodule add http://github.com/tpope/vim-fugitive.git bundle/fugitive
git add .
git commit -m "Install Fugitive.vim bundle as a submodule."
Installation on a second computer:
cd ~
git clone http://github.com/username/dotvim.git ~/.vim
ln -s ~/.vim/vimrc ~/.vimrc
ln -s ~/.vim/gvimrc ~/.gvimrc
cd ~/.vim
git submodule init
git submodule update [or git submodule update --init]
Upgrading a vim plugin:
cd ~/.vim/bundle/fugitive
git pull origin master
Upgading all vim plugins:
git submodule foreach git pull origin master