Dont remember last file cursor position
This commit is contained in:
10
vimrc
10
vimrc
@@ -445,11 +445,11 @@ match ErrorMsg '^\(<\|=\|>\)\{7\}\([^=].\+\)\?$'
|
|||||||
nnoremap <silent> <leader>c /^\(<\\|=\\|>\)\{7\}\([^=].\+\)\?$<CR>
|
nnoremap <silent> <leader>c /^\(<\\|=\\|>\)\{7\}\([^=].\+\)\?$<CR>
|
||||||
" }}}
|
" }}}
|
||||||
|
|
||||||
" Restore cursor position upon reopening files {{{
|
" Restore or remember last cursor position upon reopening files {{{
|
||||||
autocmd BufReadPost *
|
"autocmd BufReadPost *
|
||||||
\ if line("'\"") > 0 && line("'\"") <= line("$") |
|
" \ if line("'\"") > 0 && line("'\"") <= line("$") |
|
||||||
\ exe "normal! g`\"" |
|
" \ exe "normal! g`\"" |
|
||||||
\ endif
|
" \ endif
|
||||||
" }}}
|
" }}}
|
||||||
|
|
||||||
" Extra vi-compatibility {{{
|
" Extra vi-compatibility {{{
|
||||||
|
|||||||
Reference in New Issue
Block a user