summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2019-01-18 18:20:04 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2019-01-18 18:20:04 +0000
commitca38e39643b8e6ac79b7a8d3d79ab962a968d4fb (patch)
treec76745bbcee2831e26135567b63f280aa536794c
parentPlugin header switcher (diff)
downloadutil-ca38e39643b8e6ac79b7a8d3d79ab962a968d4fb.tar.bz2
util-ca38e39643b8e6ac79b7a8d3d79ab962a968d4fb.tar.xz
util-ca38e39643b8e6ac79b7a8d3d79ab962a968d4fb.zip
tidy html formatter
-rw-r--r--gvimrc1
1 files changed, 1 insertions, 0 deletions
diff --git a/gvimrc b/gvimrc
index cb76be3..798cc5c 100644
--- a/gvimrc
+++ b/gvimrc
@@ -30,6 +30,7 @@ map <F3> :call GitDiffDir()<CR><CR>
map <C-S-F3> :call GitDiffCDir()<CR><CR>
set diffexpr=MyDiff()
map <S-F3> :VCSVimDiff<CR>
+au FileType html setlocal equalprg=tidy\ -qi\ w\ 200\ --tidy-mark\ false
au FileType xml,xslt setlocal equalprg=xmllint\ --format\ --recover\ -
au FileType json setlocal equalprg=python\ -m\ json.tool
au FileType c,cpp,h map <F4> :A<CR>