From 27fa51efc7e6e49b8ee9468da0518a6c7d194499 Mon Sep 17 00:00:00 2001 From: Ciro Santilli Date: Sun, 7 Dec 2014 19:52:06 +0100 Subject: [PATCH] Remove automatic setting of foldlevel Vim already has a well known way of dealing with this: let's not create another configuration which only raises the entry barrier. --- README.md | 8 -------- after/ftplugin/mkd.vim | 6 ------ 2 files changed, 14 deletions(-) diff --git a/README.md b/README.md index 419c26d..334f898 100644 --- a/README.md +++ b/README.md @@ -61,14 +61,6 @@ This option only controls vim_markdown's folding configuration. To enable/disabl set [no]foldenable ``` -### Set Initial Foldlevel - -Add the following line to your `.vimrc` to set the initial foldlevel. This option defaults to 0 (i.e. all folds are closed) and is ignored if folding is disabled. - -```vim -let g:vim_markdown_initial_foldlevel=1 -``` - ### Disable Default Key Mappings Add the following line to your `.vimrc` to disable default key mappings. You can map them by yourself with `` mappings. diff --git a/after/ftplugin/mkd.vim b/after/ftplugin/mkd.vim index 24ee713..adac473 100644 --- a/after/ftplugin/mkd.vim +++ b/after/ftplugin/mkd.vim @@ -39,10 +39,4 @@ endfunc if !get(g:, "vim_markdown_folding_disabled", 0) setlocal foldexpr=Foldexpr_markdown(v:lnum) setlocal foldmethod=expr - - " allow the initial foldlevel to be configured in .vimrc - if !exists("g:vim_markdown_initial_foldlevel") - let g:vim_markdown_initial_foldlevel=0 - endif - let &l:foldlevel=g:vim_markdown_initial_foldlevel endif -- 2.39.5