]> git.madduck.net Git - etc/vim.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Add vim-markdown to short command reference
authorHiroshi Shirosaki <h.shirosaki@gmail.com>
Thu, 14 Apr 2016 14:14:14 +0000 (23:14 +0900)
committerHiroshi Shirosaki <h.shirosaki@gmail.com>
Thu, 14 Apr 2016 14:14:14 +0000 (23:14 +0900)
To avoid `:helptags` crash with other plugins.
Fix #273

Makefile
doc/vim-markdown.txt

index 86688f0cfc841144d789511b335facd92ba19062..c9d11550789e3b477c74e1fc1d291427a8b8d46b 100644 (file)
--- 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
index 6af20d172951078bc495067cc4751706a15203f0..80280fec7fd072da0c284383774901f12feaab0f 100644 (file)
@@ -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'
 
@@ -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