From: Ben Williams Date: Thu, 26 Sep 2013 18:10:11 +0000 (-0400) Subject: Merge add option to set initial foldlevel X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/72dfb0cd388e314fae14e8a925648b6f1957effc?ds=inline;hp=--cc Merge add option to set initial foldlevel --- 72dfb0cd388e314fae14e8a925648b6f1957effc diff --cc README.md index 550707f,4c9fcdf..175d3a4 --- a/README.md +++ b/README.md @@@ -26,17 -26,16 +26,27 @@@ Add the following line to your `.vimrc let g:vim_markdown_folding_disabled=1 ``` + **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 + ``` + +## Mappings + +the following work on normal and visual modes: + +- `]]`: go to next header +- `[[`: go to previous header +- `][`: go to next sibling header if any +- `[]`: go to previous sibling header if any +- `]c`: go to Current header +- `]u`: go to parent header (Up) + ## License The MIT License (MIT)