Skip to content

Commit

Permalink
Merge pull request spf13#183 from markdwhite/3.0
Browse files Browse the repository at this point in the history
Added bundle 'vim-scripts/restore_view.vim'
  • Loading branch information
spf13 committed Nov 10, 2012
2 parents 2f7b7fb + 825a670 commit a66c150
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .vimrc
Expand Up @@ -109,9 +109,11 @@
" g:spf13_no_views = 1
" in your .vimrc.bundles.local file"
if !exists('g:spf13_no_views')
" Could use * rather than *.*, but I prefer to leave .files unsaved
au BufWinLeave *.* silent! mkview "make vim save view (state) (folds, cursor, etc)
au BufWinEnter *.* silent! loadview "make vim load view (state) (folds, cursor, etc)
" Add exclusions to mkview and loadview
" eg: *.*, svn-commit.tmp
let g:skipview_files = [
\ '[example pattern]'
\ ]
endif
" }
" }
Expand Down
1 change: 1 addition & 0 deletions .vimrc.bundles
Expand Up @@ -91,6 +91,7 @@
Bundle 'mbbill/undotree'
Bundle 'myusuf3/numbers.vim'
Bundle 'nathanaelkane/vim-indent-guides'
Bundle 'vim-scripts/restore_view.vim'
endif

" General Programming
Expand Down

0 comments on commit a66c150

Please sign in to comment.