Skip to content

Commit

Permalink
Merge pull request carlhuda#165 from lackac/master.
Browse files Browse the repository at this point in the history
Replace markdown_preview with hammer.vim
  • Loading branch information
tmm1 committed May 2, 2011
2 parents 9eb2a7d + b11b2f2 commit dd04dbb
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
10 changes: 7 additions & 3 deletions README.markdown
Expand Up @@ -248,13 +248,17 @@ out again using `Ctrl-W o`

**Customizations**: Janus binds `<Leader>z` to `:ZoomWin`

## Markdown Preview
## Hammer

Markdown preview takes the current buffer, converts the Markdown to
HTML, and opens it in your default browser.
Hammer takes the current buffer, tries to convert it to HTML, and opens
it in your default browser. Hammer is enabled for Markdown files, but
has support for much more.

**Customizations**: Janus binds `<Leader>p` to this plugin.

**Tip**: Check out [Hammer's README](https://github.com/robgleeson/hammer.vim#readme)
to see the requirements for previewing other file formats.

## Additional Syntaxes

Janus ships with a few additional syntaxes:
Expand Down
5 changes: 4 additions & 1 deletion Rakefile
Expand Up @@ -129,7 +129,6 @@ vim_plugin_task "haml", "git://github.com/tpope/vim-haml.git"
vim_plugin_task "indent_object", "git://github.com/michaeljsmith/vim-indent-object.git"
vim_plugin_task "javascript", "git://github.com/pangloss/vim-javascript.git"
vim_plugin_task "jslint", "git://github.com/hallettj/jslint.vim.git"
vim_plugin_task "markdown_preview", "git://github.com/robgleeson/vim-markdown-preview.git"
vim_plugin_task "nerdtree", "git://github.com/wycats/nerdtree.git"
vim_plugin_task "nerdcommenter", "git://github.com/ddollar/nerdcommenter.git"
vim_plugin_task "surround", "git://github.com/tpope/vim-surround.git"
Expand All @@ -155,6 +154,10 @@ vim_plugin_task "puppet", "git://github.com/ajf/puppet-vim.git"
vim_plugin_task "scala", "git://github.com/bdd/vim-scala.git"
vim_plugin_task "gist-vim", "git://github.com/mattn/gist-vim.git"

vim_plugin_task "hammer", "git://github.com/robgleeson/hammer.vim.git" do
sh "gem install github-markup redcarpet"
end

vim_plugin_task "command_t", "git://github.com/wincent/Command-T.git" do
sh "find ruby -name '.gitignore' | xargs rm"
Dir.chdir "ruby/command-t" do
Expand Down
2 changes: 1 addition & 1 deletion vimrc
Expand Up @@ -61,7 +61,7 @@ endfunction

function s:setupMarkup()
call s:setupWrapping()
map <buffer> <Leader>p :Mm <CR>
map <buffer> <Leader>p :Hammer<CR>
endfunction

" make uses real tabs
Expand Down

0 comments on commit dd04dbb

Please sign in to comment.