mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
[nvim] automatically open folds when opening files
This commit is contained in:
parent
39602c15f0
commit
fdffee61c7
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
" }}}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue