Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ma6174 committed Jun 2, 2013
1 parent c8cacb3 commit 7e545d5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -196,11 +196,8 @@ func! CompileRunGcc()
" exec "!go build %<"
exec "!time go run %"
elseif &filetype == 'mkd'
" 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 &"
exec "!~/.vim/markdown.pl % > %.html &"
exec "!firefox %.html &"
endif
endfunc
"C,C++的调试
Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@
- clone bundle 程序:`git clone http://github.com/gmarik/vundle.git ~/.vim/bundle/vundle`
- 打开vim并执行bundle程序`:BundleInstall`

## 2013年6月2日tip

- 编写markdown文件(`*.md`)的时候,在normal模式下按 `md` 即可在当前目录下生成相应的`html`文件
- 生成之后还是在normal模式按`fi`可以使用firefox打开相应的`html`文件预览
- 当然也可以使用万能的`F5`键来一键转换并打开预览
- 如果打开过程中屏幕出现一些混乱信息,可以按`Ctrl + l`来恢复

## 2013年5月31日更新

- 增加400多种主题,可以在[colors](colors)目录中找到
Expand Down

0 comments on commit 7e545d5

Please sign in to comment.