fix issue with mkview and loadview when entering file from oil

This commit is contained in:
2025-07-24 22:34:51 +02:00
parent 212108546b
commit 895677e300
+2 -2
View File
@@ -49,8 +49,8 @@ vim.cmd [[
" Don't include curdir, it just causes pain.
set viewoptions=folds,cursor
autocmd BufWinLeave *.* silent! mkview
autocmd BufWinEnter *.* silent! loadview
autocmd BufWinLeave,BufLeave *.* silent! mkview
autocmd BufWinEnter,BufEnter *.* silent! loadview
nnoremap <c-h> <c-w>h
nnoremap <c-j> <c-w>j