Blogged by Ujihisa. Standard methods of programming and thoughts including Clojure, Vim, LLVM, Haskell, Ruby and Mathematics written by a Japanese programmer. github/ujihisa

Thursday, June 4, 2009

(Draft) Extended Markdown for Vim Hacks

This post is for the authors of Vim Hacks.

Markdown syntax supports <code>, <img>, <ul> or other primary html tags. Vim Hacks authors need <kbd> tag besides. And also, it is useful for us to be supported to contain metadata of Vim Hacks in a file. Therefore, I propose Extended Markdown Syntax for Vim Hacks.

  • Extention: ***.mdv
  • <h1> of the first line becomes
  • `|<Cr>|` becomes <kbd>&lt;Cr&gt;</kbd>
  • Author: *** of the last line becomes <author>***</author>

Example:

# Hack #22: Ultra Super Great Vim Plugin | lv2 2009-06-06

## PROBLEM
blah blah blah

## SOLUTION
use [blogger.vim](http://www.vim.org/scripts/script.php?script_id=2638) with
the key mapping `|j|`.

## DISCUSSION
blah blah blah

    nnoremap j :<C-u>1000sl<Cr>
    nnoremap k :<C-u>1000sl<Cr>

blah blah blah. hara y y hara y?

Author: ujihisa

TODO

  • Implement mdv2html and html2mdv
  • Implement mdvlint

No comments:

Post a Comment

Followers