Skip to content

Commit 8039686

Browse files
committed
Merge branch 'master' of github.com:edgecase/vim-config
2 parents d108714 + 204998b commit 8039686

3 files changed

Lines changed: 25 additions & 2 deletions

File tree

.vim/common_config/functions.vim

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,17 @@ fun! Html2haml()
55
!git rm %:r.erb
66
endfun
77

8+
let html_use_css = 1 " Use stylesheet instead of inline style
9+
let html_number_lines = 0 " don't show line numbers
10+
let html_no_pre = 1 " don't wrap lines in <pre>
11+
12+
function! OpenHtml(line1, line2)
13+
exec a:line1.','.a:line2.'TOhtml'
14+
%s/monospace/Monaco/g
15+
%s/bold/normal/g
16+
save! /tmp/__OpenHtml.html
17+
!open %
18+
q
19+
endfunction
20+
command! -range=% OpenHtml :call OpenHtml(<line1>,<line2>)
21+

.vim/common_config/plugin_config.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171

7272

7373
" Markdown preview to quickly preview markdown files
74-
Bundle "git://github.com/robgleeson/vim-markdown-preview.git"
74+
Bundle "git://github.com/maba/vim-markdown-preview.git"
7575
map <buffer> <Leader>mp :Mm<CR>
7676
7777

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ functionality to your vim projects. You can learn more about it with
224224
`:help NERDTree`.
225225

226226
**Customizations**:
227-
Use `<leader>t` to toggle NERDTree
227+
Use `gt` to toggle NERDTree
228228

229229
## Ack.vim
230230

@@ -357,6 +357,15 @@ HTML, and opens it in your default browser.
357357

358358
**Customizations**: Binds `<leader>mp` to this plugin.
359359

360+
## OpenHtml
361+
362+
OpenHtml is a custom function to convert the current file (or range)
363+
into styled HTML and open in your default browser. This makes it easy
364+
to copy the result (as RTF) from the browser into anther document or
365+
presentation.
366+
367+
Just run :OpenHtml, then highlight and copy the text from your browser.
368+
360369
## Additional Syntaxes / Language Support
361370

362371
Ships with a few additional syntaxes:

0 commit comments

Comments
 (0)