From: Hiroshi Shirosaki Date: Thu, 14 Apr 2016 14:14:14 +0000 (+0900) Subject: Add vim-markdown to short command reference X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/f06efe01b7e7228715e84ad7ec5c7d8be9fdd6d7?ds=sidebyside;hp=7c0578d6e84384c280a714b99d7ec08c3d45cda9 Add vim-markdown to short command reference To avoid `:helptags` crash with other plugins. Fix #273 --- diff --git a/Makefile b/Makefile index 86688f0..c9d1155 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/doc/vim-markdown.txt b/doc/vim-markdown.txt index 6af20d1..80280fe 100644 --- a/doc/vim-markdown.txt +++ b/doc/vim-markdown.txt @@ -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. 'Markdown_OpenUrlUnderCursor' @@ -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. 'Markdown_MoveToNextHeader' - *[[* + *vim-markdown-[[* - '[[': go to previous header. Contrast with ']c'. 'Markdown_MoveToPreviousHeader' - *][* + *vim-markdown-][* - '][': go to next sibling header if any. 'Markdown_MoveToNextSiblingHeader' - *[]* + *vim-markdown-[]* - '[]': go to previous sibling header if any. 'Markdown_MoveToPreviousSiblingHeader' - *]c* + *vim-markdown-]c* - ']c': go to Current header. 'Markdown_MoveToCurHeader' - *]u* + *vim-markdown-]u* - ']u': go to parent header (Up). 'Markdown_MoveToParentHeader' This plugin follows the recommended Vim plugin mapping interface, so to change