On Tue, Feb 24, 2026 at 03:49:29PM +0100, Yves-Alexis Perez wrote:
One specific line I was interested in having enabled is (from /etc/vim/vimrc):

" Uncomment the following to have Vim jump to the last position when
" reopening a file
au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! 
g'\"" | endif

There's a more robust solution documented in ":help last-position-jump".
I should probably update /etc/vim/vimrc to either point to that or just
use the new code.

Cheers,
--
James (he/him)
GPG Key: 4096R/91BF BF4D 6956 BD5D F7B7  2D23 DFE6 91AE 331B A3DB

Reply via email to