Skip to content

Commit

Permalink
just now not git add .
Browse files Browse the repository at this point in the history
	modified:   .vimrc
	modified:   README.md
	modified:   README.md.html
  • Loading branch information
ma6174 committed Aug 4, 2012
1 parent 433fe6d commit c32e233
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ set iskeyword+=_,$,@,%,#,-
au BufRead,BufNewFile *.{md,mdown,mkd,mkdn,markdown,mdwn} set filetype=mkd
"rkdown to HTML
nmap md :!~/.vim/markdown.pl % > %.html <CR><CR>
nmap fi :!firefox %.html & <CR><CR>


Expand Down Expand Up @@ -151,7 +152,10 @@ func! CompileRunGcc()
elseif &filetype == 'python'
exec "!python %"
elseif &filetype == 'mkd'
exec "!perl ~/.vim/markdown.pl % > /tmp/markdown.html"<CR>
" exec "!touch ~/temp.html"
" exec "!perl ~/.vim/markdown.pl % > /tmp/temp.html<"<CR>
" exec "!markdown % > /tmp/temp.html<"<CR>
" exec "md"
exec "!firefox /tmp/markdown.html &"
endif
endfunc
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* 增加日历功能
* 精简了一些没用的.vimrc 配置

##2012年8月2日更新
##2012年8月4日更新
1. 增加markdown插件
* 新建markdown文件自动添加表头"charset="utf-8"
* 按 md 直接生成对应的html文件,如a.md将生成a.md.html
Expand Down
2 changes: 1 addition & 1 deletion README.md.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ <h2>2012年7月28日更新:</h2>
<li>精简了一些没用的.vimrc 配置</li>
</ol>

<h2>2012年8月2日更新</h2>
<h2>2012年8月4日更新</h2>

<ol>
<li>增加markdown插件</li>
Expand Down

0 comments on commit c32e233

Please sign in to comment.