Browse Source

add format xml function

pull/4/head
Ein Verne 9 years ago
parent
commit
5382edbf3c
  1. 6
      _vimrc
  2. BIN
      xmllint-1.0.exe

6
_vimrc

@ -290,3 +290,9 @@ function! MyDiff()
silent execute '!' . cmd . ' ' . opt . arg1 . ' ' . arg2 . ' > ' . arg3 . eq
endfunction
function! Xml()
set filetype=xml
:%s/></>\r</g "把><替换成>回车<
:normal gg=G<cr>
endfunction
map <leader>xml :call Xml()

BIN
xmllint-1.0.exe

Binary file not shown.
Loading…
Cancel
Save