Skip to content

Commit 8f80149

Browse files
authored
Merge pull request #83 from Rolight/feature/local-vimrc
Add feature that override default vimrc using vimrc.local
2 parents fe292c3 + 706c4e3 commit 8f80149

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ vim扩展管理器使用的是Vundle,参见相关文档[3]。
3737

3838
./install-plugins.sh rebuild --clang-completer --gocode-completer
3939

40+
安装完成后后,可以通过修改HOME目录下的.vimrc.local来覆盖默认的vimrc配置。
41+
4042

4143
# 问题集锦
4244

install-plugins.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#!/usr/bin/env bash
22

33
function install {
4-
cp vimrc $HOME/.vimrc
4+
ln -s -f `pwd`/vimrc $HOME/.vimrc
5+
touch $HOME/.vimrc.local
56
yes "\n" | sudo vim +PluginClean +qall
67
yes "\n" | sudo vim +PluginInstall +qall
78
}

vimrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,3 +263,7 @@ nnoremap <S-Tab> <<_
263263
inoremap <S-Tab> <C-D>
264264
vnoremap <Tab> >gv
265265
vnoremap <S-Tab> <gv
266+
267+
268+
" override with your local vimrc
269+
so ~/.vimrc.local

0 commit comments

Comments
 (0)