diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2021-03-18 15:42:07 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2021-03-18 15:42:07 -0300 |
commit | e9a6df36ccee81dd0195756ed1b6c36ab13306c4 (patch) | |
tree | 8fe380139295f629c779bae488e5ab9cdf054b3a | |
parent | 75836c0435068b1edab7b07739b311d0180130fd (diff) | |
download | vim-e9a6df36ccee81dd0195756ed1b6c36ab13306c4.tar.gz vim-e9a6df36ccee81dd0195756ed1b6c36ab13306c4.tar.bz2 |
Feat: adds vim-markdown-folding
-rw-r--r-- | .gitmodules | 3 | ||||
m--------- | vim.dot.link/bundle/vim-markdown-folding | 0 | ||||
-rw-r--r-- | vimrc.dot.link | 32 |
3 files changed, 21 insertions, 14 deletions
diff --git a/.gitmodules b/.gitmodules index 3d3f214..fbdba55 100644 --- a/.gitmodules +++ b/.gitmodules @@ -55,3 +55,6 @@ [submodule "vim.dot.link/bundle/vim-session"] path = vim.dot.link/bundle/vim-session url = https://github.com/xolox/vim-session +[submodule "vim.dot.link/bundle/vim-markdown-folding"] + path = vim.dot.link/bundle/vim-markdown-folding + url = https://github.com/masukomi/vim-markdown-folding diff --git a/vim.dot.link/bundle/vim-markdown-folding b/vim.dot.link/bundle/vim-markdown-folding new file mode 160000 +Subproject 3f35acfb753cc9ea22182400b075c5b6e896ad7 diff --git a/vimrc.dot.link b/vimrc.dot.link index 114386d..f355a76 100644 --- a/vimrc.dot.link +++ b/vimrc.dot.link @@ -58,20 +58,6 @@ augroup END set wildmode=longest,list,full set wildmenu -" Folding -" Disabled due to slowness -"set foldmethod=syntax -"set foldlevelstart=99 -"let g:sh_fold_enabled=1 -"let javaScript_fold=1 -"let perl_fold=1 -"let php_folding=1 -"let r_syntax_folding=1 -"let ruby_fold=1 -"let sh_fold_enabled=1 -"let vimsyn_folding='af' -"let xml_syntax_folding=1 - " PHP let php_sql_query=1 @@ -109,6 +95,24 @@ call pathogen#infect() syntax on filetype plugin indent on +" Folding +" Disabled due to slowness +"set foldmethod=syntax +"set foldlevelstart=99 +"let g:sh_fold_enabled=1 +"let javaScript_fold=1 +"let perl_fold=1 +"let php_folding=1 +"let r_syntax_folding=1 +"let ruby_fold=1 +"let sh_fold_enabled=1 +"let vimsyn_folding='af' +"let xml_syntax_folding=1 + +" Setup https://github.com/masukomi/vim-markdown-folding +" Alternative method: https://codereview.stackexchange.com/questions/202620/vim-plugin-for-folding-markdown-lists +autocmd FileType markdown set foldexpr=NestedMarkdownFolds() + " No modelines " https://lwn.net/Articles/20249/ " http://usevim.com/2012/03/28/modelines/ |