mirror of
https://github.com/Matir/skel.git
synced 2026-05-26 13:35:42 -07:00
Vimrc: remember position and return to it.
This commit is contained in:
@@ -29,6 +29,20 @@ imap <S-Tab> <Esc><<A
|
|||||||
set number
|
set number
|
||||||
set ruler
|
set ruler
|
||||||
|
|
||||||
|
" Setup viminfo for recording positions, etc.
|
||||||
|
set viminfo='10,\"100,:20,%,n~/.viminfo
|
||||||
|
" Jump back when editing a file
|
||||||
|
function! ResCur()
|
||||||
|
if line("'\"") <= line("$")
|
||||||
|
normal! g`"
|
||||||
|
return 1
|
||||||
|
endif
|
||||||
|
endfunction
|
||||||
|
augroup resCur
|
||||||
|
autocmd!
|
||||||
|
autocmd BufWinEnter * call ResCur()
|
||||||
|
augroup END
|
||||||
|
|
||||||
" File options
|
" File options
|
||||||
set encoding=utf-8
|
set encoding=utf-8
|
||||||
" Syntax highlighting, look and feel
|
" Syntax highlighting, look and feel
|
||||||
|
|||||||
Reference in New Issue
Block a user