[nvim] automatically open folds when opening files

This commit is contained in:
Dmytro Meleshko 2021-06-03 16:42:44 +03:00
parent 39602c15f0
commit fdffee61c7

View file

@ -54,7 +54,11 @@ set commentstring=//%s
" remember cursor position
augroup vimrc-editing-remember-cursor-position
autocmd!
autocmd BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exec "normal! g`\"" | endif
autocmd BufReadPost *
\ if line("'\"") > 1 && line("'\"") <= line("$")
\| exec "normal! g`\""
\|endif
\|silent! .foldopen
augroup END
" }}}