Permalink
Browse files

silence :%s/></... line when the output is empty

  • Loading branch information...
1 parent 0ca3e9d commit 414c50bcc50a8f2ed6141e082dcf7d85d8dadda5 @coledarr committed with Oct 1, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 plugin/vim-xqmarklogic.vim
@@ -59,6 +59,6 @@ function! s:QueryMarkLogic(fname)
execute 'r! curl --digest --user ' . s:user . ':' . s:password . ' -s -X PUT -d@"' . a:fname . '" ' . s:uri . s:host . ':' . s:port . s:xq
"execut 'r! curl --digest --user admin:password -s -X PUT -d@"' . a:fname . '" http://localhost:8002/xq.xqy'
- :%s/></></g
+ silent! :%s/></></g
normal gg=G
endfunction

0 comments on commit 414c50b

Please sign in to comment.