Skip to content
This repository was archived by the owner on Sep 14, 2022. It is now read-only.

Commit e87b05a

Browse files
committed
Use $HOME over ~ in .vimrc.
1 parent 0a85667 commit e87b05a

File tree

4 files changed

+18
-12
lines changed

4 files changed

+18
-12
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## HEAD
4+
5+
- Use $HOME over ~.
6+
37
## 1.1.0
48

59
- Improve switching between dev and nodev mode.

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ if has('vim_starting')
4848
set nocompatible
4949
endif
5050
51-
set runtimepath+=~/.vim/bundle/neobundle.vim/
51+
set runtimepath+=$HOME/.vim/bundle/neobundle.vim/
5252
endif
5353
54-
call neobundle#begin(expand('~/.vim/bundle/'))
54+
call neobundle#begin($HOME . '/.vim/bundle/')
5555
5656
NeoBundleFetch 'shougo/neobundle.vim'
5757
@@ -65,8 +65,8 @@ NeoBundle 'shougo/vimproc.vim', {
6565
\ },
6666
\ }
6767
68-
if filereadable(expand('~/.vim/bundle/vimrc/plugins.vim'))
69-
source ~/.vim/bundle/vimrc/plugins.vim
68+
if filereadable($HOME . '/.vim/bundle/vimrc/plugins.vim')
69+
source $HOME/.vim/bundle/vimrc/plugins.vim
7070
endif
7171
7272
NeoBundle 'rxrc/vimrc'

gulpfile.coffee

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ gulp.task 'default', ['dev']
1818
gulp.task 'dev', ->
1919
gulp.src("#{homePath}/.vimrc")
2020
.pipe $.replace("NeoBundle '#{remotePluginPath}'", "NeoBundle '#{path.resolve()}'")
21-
.pipe $.replace("~/.vim/bundle/vimrc/plugins.vim", "#{path.resolve()}/plugins.vim")
21+
.pipe $.replace("$HOME . '/.vim/bundle/vimrc/plugins.vim'", "'' . '#{path.resolve()}/plugins.vim'")
22+
.pipe $.replace('$HOME/.vim/bundle/vimrc/plugins.vim', "#{path.resolve()}/plugins.vim")
2223
.pipe gulp.dest(homePath)
2324

2425
gulp.src('')
@@ -30,7 +31,8 @@ gulp.task 'dev', ->
3031
gulp.task 'nodev', ->
3132
gulp.src("#{homePath}/.vimrc")
3233
.pipe $.replace("NeoBundle '#{path.resolve()}'", "NeoBundle '#{remotePluginPath}'")
33-
.pipe $.replace("#{path.resolve()}/plugins.vim", "~/.vim/bundle/vimrc/plugins.vim")
34+
.pipe $.replace("'' . '#{path.resolve()}/plugins.vim'", "$HOME . '/.vim/bundle/vimrc/plugins.vim'")
35+
.pipe $.replace("#{path.resolve()}/plugins.vim", '$HOME/.vim/bundle/vimrc/plugins.vim')
3436
.pipe gulp.dest(homePath)
3537

3638
gulp.src('')

install.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,33 +68,33 @@ if has('vim_starting')
6868
set nocompatible
6969
endif
7070
71-
set runtimepath+=~/.vim/bundle/neobundle.vim/
71+
set runtimepath+=\$HOME/.vim/bundle/neobundle.vim/
7272
endif
7373
74-
call neobundle#begin(expand('~/.vim/bundle/'))
74+
call neobundle#begin(\$HOME . '/.vim/bundle/')
7575
7676
NeoBundleFetch 'shougo/neobundle.vim'
7777
7878
NeoBundle 'shougo/vimproc.vim', {
7979
\ 'build' : {
80-
\ 'windows' : 'tools\\update-dll-mingw',
80+
\ 'windows' : 'tools\\\\update-dll-mingw',
8181
\ 'cygwin' : 'make -f make_cygwin.mak',
8282
\ 'mac' : 'make -f make_mac.mak',
8383
\ 'linux' : 'make',
8484
\ 'unix' : 'gmake',
8585
\ },
8686
\ }
8787
88-
if filereadable(expand('~/.vim/bundle/vimrc/plugins.vim'))
89-
source ~/.vim/bundle/vimrc/plugins.vim
88+
if filereadable(\$HOME . '/.vim/bundle/vimrc/plugins.vim')
89+
source \$HOME/.vim/bundle/vimrc/plugins.vim
9090
endif
9191
9292
NeoBundle 'rxrc/vimrc'
9393
9494
call neobundle#end()
9595
EOF
9696

97-
echo -e "\033[32m ✔ Installed ❰ $HOME/.vimrc ❱ \033[0m"
97+
echo -e "\033[32m ✔ Installed ❰ ~/.vimrc ❱ \033[0m"
9898

9999
echo -e " ➤ Run ❰ neoinstall ❱ \033[0m"
100100

0 commit comments

Comments
 (0)