From 6ea3351adce4ea28f61ed2f38b6ffae5acefb38c Mon Sep 17 00:00:00 2001 From: Yan Pritzker Date: Thu, 10 Jan 2013 10:25:02 -0600 Subject: [PATCH] Added ,gt html tidy command --- README.md | 5 +---- vim/plugin/settings/tidy.vim | 1 + 2 files changed, 2 insertions(+), 4 deletions(-) create mode 100644 vim/plugin/settings/tidy.vim diff --git a/README.md b/README.md index dd71ccc..0a03ebb 100644 --- a/README.md +++ b/README.md @@ -253,15 +253,11 @@ If you omit the key combo, you'll get a list of all the maps. You can do the sam * `,gcp` - GitGrep Current Partial to find references to the current view partial * `,gcf` - GitGrep Current File to find references to the current file * `//` - clear the search - * `,q/` - quickfix window with last search (stolen from Steve Losh) - * `,qa/` - quickfix Ack last search (Steve Losh) - * `,qg/` - quickfix GitGrep last search * `,T` - Tag list (list of methods in a class) * `Ctrl-s` - Open related spec in a split. Similar to :A and :AV from rails.vim but is also aware of the fast_spec dir and faster to type * `,,w` (alias `,`) or `,,b` (alias `,`) - EasyMotion, a vimperator style tool that highlights jump-points on the screen and lets you type to get there. #### File Navigation - * `,t` - CtrlP fuzzy file selector * `,b` - CtrlP buffer selector * `Cmd-Shift-M` - jump to method - CtrlP tag search within current buffer @@ -338,6 +334,7 @@ If you omit the key combo, you'll get a list of all the maps. You can do the sam * `:gitv` - Git log browsers * `,hi` - show current Highlight group. if you don't like the color of something, use this, then use `hi! link [groupname] [anothergroupname]` in your vimrc.after to remap the color. You can see available colors using `:hi` * `,yr` - view the yankring - a list of your previous copy commands. also you can paste and hit `ctrl-p` for cycling through previous copy commands + * `,gt` - Go Tidy - tidy up your html code (works on a visual selection) #### Ruby Debugger diff --git a/vim/plugin/settings/tidy.vim b/vim/plugin/settings/tidy.vim new file mode 100644 index 0000000..360a0d0 --- /dev/null +++ b/vim/plugin/settings/tidy.vim @@ -0,0 +1 @@ +:vmap ,gt :!tidy -q -i --show-errors 0