diff --git a/README.md b/README.md index 5324881e..7009cd63 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 1302fa2b..540abe75 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 %