Skip to content

Commit

Permalink
Add vim-markdown to short command reference
Browse files Browse the repository at this point in the history
To avoid `:helptags` crash with other plugins.
Fix preservim#273
  • Loading branch information
shirosaki committed Apr 14, 2016
1 parent 7c0578d commit f06efe0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ doc: build/html2vimdoc build/vim-tools
-e "}" \
-e "/^- '[^']*':( |$$)/ {" \
-e "h" -e "# save the matched line to the hold space" \
-e "s/^- '([^']*)':.*/ \*\1\*/" -e "# make command reference" \
-e "s/^- '([^']{3,})':.*/ \*\1\*/" -e "# make command reference" \
-e "s/^- '([^']{1,2})':.*/ \*vim-markdown-\1\*/" -e "# short command" \
-e ":a" -e "s/^(.{1,78})$$/ \1/" -e "ta" -e "# align right" \
-e "G" -e "# append the matched line after the command reference" \
-e "}" > doc/vim-markdown.txt && rm -f doc/tmp.md
Expand Down
14 changes: 7 additions & 7 deletions doc/vim-markdown.txt
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ Mappings ~

The following work on normal and visual modes:

*gx*
*vim-markdown-gx*
- 'gx': open the link under the cursor in the same browser as the standard
'gx' command. '<Plug>Markdown_OpenUrlUnderCursor'

Expand All @@ -262,25 +262,25 @@ The following work on normal and visual modes:
<
Known limitation: does not work for links that span multiple lines.

*]]*
*vim-markdown-]]*
- ']]': go to next header. '<Plug>Markdown_MoveToNextHeader'

*[[*
*vim-markdown-[[*
- '[[': go to previous header. Contrast with ']c'.
'<Plug>Markdown_MoveToPreviousHeader'

*][*
*vim-markdown-][*
- '][': go to next sibling header if any.
'<Plug>Markdown_MoveToNextSiblingHeader'

*[]*
*vim-markdown-[]*
- '[]': go to previous sibling header if any.
'<Plug>Markdown_MoveToPreviousSiblingHeader'

*]c*
*vim-markdown-]c*
- ']c': go to Current header. '<Plug>Markdown_MoveToCurHeader'

*]u*
*vim-markdown-]u*
- ']u': go to parent header (Up). '<Plug>Markdown_MoveToParentHeader'

This plugin follows the recommended Vim plugin mapping interface, so to change
Expand Down

0 comments on commit f06efe0

Please sign in to comment.