From 34bb32e17262b70dd92611bf29c6e32581443221 Mon Sep 17 00:00:00 2001 From: Yan Pritzker Date: Tue, 11 Sep 2012 10:19:04 -0700 Subject: [PATCH] Added for html preview in Safari --- README.md | 1 + vim/plugin/settings/yadr-keymap.vim | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/README.md b/README.md index 5324881..7009cd6 100644 --- a/README.md +++ b/README.md @@ -394,6 +394,7 @@ files contain key mappings as well (TODO: probably will move them out to skwp-ke * `sk` - unsplit a link (k = up) * `,he` - Html Escape * `,hu` - Html Unescape + * `,hp` - Html Preview (open in Safari) * `Cmd-Shift-A` - align things (type a character/expression to align by, works in visual mode or by itself) * `:ColorToggle` - turn on #abc123 color highlighting (useful for css) * `:gitv` - Git log browsers diff --git a/vim/plugin/settings/yadr-keymap.vim b/vim/plugin/settings/yadr-keymap.vim index 1302fa2..540abe7 100644 --- a/vim/plugin/settings/yadr-keymap.vim +++ b/vim/plugin/settings/yadr-keymap.vim @@ -246,3 +246,7 @@ map ,hi :echo "hi<" . synIDattr(synID(line("."),col("."),1),"name") . '> trans<' " Source current file Cmd-% (good for vim development) map :so % + + +" ,hp = html preview +map ,hp :!open -a Safari %