X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/9dd8d7c09eff15f845edfa88cb22df88a5b6b8c6..c1b9f4adadea1548b54373e951950ca2d6c7aa92:/README.md diff --git a/README.md b/README.md index 83e4847..f5cbaf9 100644 --- a/README.md +++ b/README.md @@ -72,13 +72,21 @@ set [no]foldenable ### Change fold style -To fold in a style like [python-mode](https://github.com/klen/python-mode), add -the following to your `.vimrc`: +To fold in a style like [python-mode](https://github.com/klen/python-mode), add the following to your `.vimrc`: ```vim let g:vim_markdown_folding_style_pythonic = 1 ``` +Level 1 heading which is served as a document title is not folded. +`g:vim_markdown_folding_level` setting is not active with this fold style. + +To prevent foldtext from being set add the following to your `.vimrc`: + +```vim +let g:vim_markdown_override_foldtext = 0 +``` + ### Set header folding level Folding level is a number between 1 and 6. By default, if not specified, it is set to 1. @@ -238,6 +246,10 @@ The following work on normal and visual modes: Known limitation: does not work for links that span multiple lines. +- `ge`: open the link under the cursor in Vim for editing. Useful for relative markdown links. `Markdown_EditUrlUnderCursor` + + The rules for the cursor position are the same as the `gx` command. + - `]]`: go to next header. `Markdown_MoveToNextHeader` - `[[`: go to previous header. Contrast with `]c`. `Markdown_MoveToPreviousHeader`