1 安装pandoc 2 vim ~/.vimrc :nmap <F2> :update<CR>:!pandoc -f markdown -t html -o %.out.html %<CR> 以后按一下F2就可以转换了