mirror of
1
0
Fork 0

update Vim jump to the last position config

This commit is contained in:
Tiande 2016-01-16 22:34:20 +08:00
parent 8093a5d271
commit 5dbfe3f26a
1 changed files with 6 additions and 8 deletions

View File

@ -12,7 +12,7 @@ let g:solarized_italic=0 " 1 | 0
" let g:solarized_bold=0
" let g:solarized_underline=0
set background=light " dark
set background=dark " dark
:colorscheme solarized " ir_black mayansmoke
" syntastic
@ -95,13 +95,11 @@ let NERDTreeAutoDeleteBuffer=1
map <M-n> :lnext<cr>
map <M-p> :lprevious<cr>
" Return to last edit position when opening files (You want this!)
autocmd BufReadPost * silent! normal! g`"zv
\ if line("'\"") > 0 && line("'\"") <= line("$") |
\ exe "normal! g`\"" |
\ endif
" Remember info about open buffers on close
set viminfo^=%
" Uncomment the following to have Vim jump to the last position when reopening a file
if has("autocmd")
au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$")
\| exe "normal! g`\"" | endif
endif
" multi_cursor
" Default mapping