.vimrc - set folds

Set folds open by default in markdown files
This commit is contained in:
2024-02-23 13:42:27 -05:00
parent 802effee7e
commit fab299fa13

11
.vimrc
View File

@@ -113,7 +113,6 @@ call plug#end()
" --------------------------------------------------------------------------------------------------------------------- " ---------------------------------------------------------------------------------------------------------------------
" ==> Plugin Options " ==> Plugin Options
" Options and overrides for installed plugins " Options and overrides for installed plugins
"
" Vim Markdown " Vim Markdown
" Set default conceallevel to hide links and some formatting " Set default conceallevel to hide links and some formatting
@@ -123,11 +122,15 @@ let g:vim_markdown_strikethrough = 1
" follow anchors - allow <ge> to follow anchors just like links " follow anchors - allow <ge> to follow anchors just like links
let g:vim_markdown_follow_anchor = 1 let g:vim_markdown_follow_anchor = 1
" multi-line bullets in markdown " multi-line bullets in markdown
" r - Continue comments when pressing Enter " [Reference](https://vimdoc.sourceforge.net/htmldoc/change.html#fo-table)
" n - Recognize numbered lists
" t - autowrap lines using text width value
" j - remove a comment leader when joining lines. " j - remove a comment leader when joining lines.
" l - long lines are not broken in insert mode
" n - Recognize numbered lists
" r - Continue comments when pressing Enter
" t - autowrap lines using text width value
autocmd FileType markdown set formatoptions=jlnrt autocmd FileType markdown set formatoptions=jlnrt
" Open folds by default
au BufWinEnter * normal zR
" --------------------------------------------------------------------------------------------------------------------- " ---------------------------------------------------------------------------------------------------------------------
" ==> Colors " ==> Colors