From 49d2add0fc7f6edb48b0a5956f9596fa4782d3dd Mon Sep 17 00:00:00 2001 From: ADAM David Alan Martin Date: Wed, 3 Mar 2021 18:30:27 -0500 Subject: [PATCH] Make vim load the top line, always. --- vim/vimrc.fileprefs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vim/vimrc.fileprefs b/vim/vimrc.fileprefs index 19072d4..27283ad 100644 --- a/vim/vimrc.fileprefs +++ b/vim/vimrc.fileprefs @@ -38,3 +38,8 @@ au FileType * setlocal formatoptions=tcq " Statusline workaround: au BufWinEnter quickfix source ~/.vim/vimrc.statusline + +" Sometimes some distros make us load up on the last line edited, when reading for the first time... +" This should fix this. +au BufReadPost * :1 +au BufNewFile * :1