X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/23b0548626d0f24bba78a16fa57a0190fe6480e2..de9d81d8cbe132d16a2cabafa1db2f0de03b6a31:/Makefile?ds=sidebyside diff --git a/Makefile b/Makefile index 86688f0..67c31c3 100644 --- a/Makefile +++ b/Makefile @@ -62,9 +62,16 @@ 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 "}" \ + -e "/^- '[^']*'$$/ {" \ + -e "h" -e "# save the matched line to the hold space" \ + -e "s/^- '([^']*)'$$/ \*\1\*/" -e "# make global variable reference" \ + -e ":g" -e "s/^(.{1,78})$$/ \1/" -e "tg" -e "# align right" \ + -e "G" -e "# append the matched line after the global variable reference" \ -e "}" > doc/vim-markdown.txt && rm -f doc/tmp.md .PHONY: doc