systemSetup

system setup, configuration and dotfiles
git clone https://noulin.net/git/systemSetup.git
Log | Files | Refs | README | LICENSE

commit f386e73c944fa69ad966b8fb0a9946898da0de35
parent 505761e6f4e8786cc8b526a8d638755d6812aeee
Author: Remy Noulin <loader2x@gmail.com>
Date:   Fri, 14 Jan 2022 11:35:09 +0200

add a setting in vimrc to return to last edit position when opening files

dotfiles/.vimrc | 7 +++++++
1 file changed, 7 insertions(+)

Diffstat:
Mdotfiles/.vimrc | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/dotfiles/.vimrc b/dotfiles/.vimrc @@ -152,8 +152,15 @@ nnoremap <C-Right> :tabnext<CR> autocmd BufNewFile,BufReadPost *.coffee setl foldmethod=indent foldenable source ~/.vim/plugin/v.vim set ruler +" remove space at line end autocmd BufWritePre * %s/\s\+$//e +" Return to last edit position when opening files +autocmd BufReadPost * + \ if line("'\"") > 0 && line("'\"") <= line("$") | + \ exe "normal! g`\"" | + \ endif + set path+=** set wildmenu " enable word wrap