Skip to content

Commit be6f4b6

Browse files
author
245950258
committed
add view
1 parent 6a369bc commit be6f4b6

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

vim/.vimrc

+8
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,14 @@ filetype plugin indent on
6161
" Vundle 设置结束
6262
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
6363

64+
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
65+
" User 设置开始
66+
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
67+
source ~/.vim/plugin/wbr.vim
68+
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
69+
" User 设置结束
70+
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
71+
6472
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
6573
" Windows gvim Begin
6674
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""

vim/plugin/autocmd.vim

+3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ endif
2323
if has("autocmd")
2424
" Clear all spaces before <Enter> before save files
2525
autocmd BufWritePre * :%s/\s\+$//e
26+
" Make views automatic
27+
autocmd BufWinLeave *.* mkview
28+
autocmd BufWinEnter *.* silent loadview
2629
endif
2730

2831
autocmd BufNewFile * normal G

0 commit comments

Comments
 (0)