Wednesday, August 31, 2016

Useful vimrc.local (remember last position of editing for vim)

vim /etc/vim/vimrc.local

" Jump to the last position
if has("autocmd")
autocmd BufReadPost * if line("'\"") > 0 && line ("'\"") <= line("$") | exe "normal! g`\"" | endif
endif

" Enable syntax hightlighting
syntax on

No comments:

Post a Comment