From 2a76fb6ce9cc3fdce9003c7d07b6a18f25abfbb0 Mon Sep 17 00:00:00 2001 From: "Claudio Maggioni (maggicl)" Date: Mon, 12 Aug 2019 11:25:43 +0200 Subject: [PATCH] Forced BufRead on BufWInEnter to reload modelines even with loadview --- init.vim | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/init.vim b/init.vim index 1462396..97689ea 100644 --- a/init.vim +++ b/init.vim @@ -169,7 +169,7 @@ tnoremap augroup AutoSaveFolds autocmd! autocmd BufWinLeave * silent! mkview - autocmd BufWinEnter * silent! loadview + autocmd BufWinEnter * silent! loadview | doautocmd BufRead augroup END " clear search pattern with F2 @@ -178,6 +178,9 @@ noremap :let @/ = "" " Switch between Windows with: Leader w nnoremap w +" Re-read buffer and load modelines with: Leader m +nnoremap m :doautocmd BufRead + " Open fzf with all files in git with: Leader f nnoremap f :GFiles