Skip to content

Commit 1717536

Browse files
authored
Update instructions on updating vimrc (amix#614)
1 parent 3263272 commit 1717536

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,10 @@ If you have vim aliased as `vi` instead of `vim`, make sure to either alias it:
6363
Just do a git rebase!
6464

6565
cd ~/.vim_runtime
66+
git reset --hard
67+
git clean -d --force
6668
git pull --rebase
67-
python update_plugins.py
69+
python update_plugins.py # use python3 if python is unavailable
6870

6971

7072
## Some screenshots

install_awesome_parameterized.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,18 @@ set -e
44
echo 'Installing Awesome Vim from '$1
55
cd $1
66

7-
VIMRC="set runtimepath+=$1
7+
VIMRC="\" DO NOT EDIT THIS FILE
8+
\" Add your own customizations in $1/my_configs.vim
9+
10+
set runtimepath+=$1
811
912
source $1/vimrcs/basic.vim
1013
source $1/vimrcs/filetypes.vim
1114
source $1/vimrcs/plugins_config.vim
1215
source $1/vimrcs/extended.vim
1316
1417
try
15-
source $1/my_configs.vim
18+
source $1/my_configs.vim
1619
catch
1720
endtry"
1821

install_awesome_vimrc.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,18 @@ set -e
33

44
cd ~/.vim_runtime
55

6-
echo 'set runtimepath+=~/.vim_runtime
6+
echo '" DO NOT EDIT THIS FILE
7+
" Add your own customizations in ~/.vim_runtime/my_configs.vim
8+
9+
set runtimepath+=~/.vim_runtime
710
811
source ~/.vim_runtime/vimrcs/basic.vim
912
source ~/.vim_runtime/vimrcs/filetypes.vim
1013
source ~/.vim_runtime/vimrcs/plugins_config.vim
1114
source ~/.vim_runtime/vimrcs/extended.vim
1215
1316
try
14-
source ~/.vim_runtime/my_configs.vim
17+
source ~/.vim_runtime/my_configs.vim
1518
catch
1619
endtry' > ~/.vimrc
1720

0 commit comments

Comments
 (0)