Commits

Josh VanderLinden  committed c3604ff

Added a utility function to handle some UCS Manager XML API requests

  • Participants
  • Parent commits 970fb67

Comments (0)

Files changed (1)

 EOF
     call setqflist(b:qf_list, 'r')
 
+    highlight Needle ctermbg=red guibg=red
+    exec "match Needle /".a:word."/"
     set nomodifiable
 endfunction
 
 endfunction
 
 nnoremap <F2> :ReStructuredText<CR>
+
+command! -range FetchCURL call s:FetchCURL(<line1>,<line2>)
+function! s:FetchCURL(start,end)
+    normal! "zy"zPgv
+    exec "'<,'>!curl -sk 'http://config:config@192.168.38.179/nuova' -H 'Content-Type: application/xml; charset=UTF-8' -d @- | tidy -xml -iq -wrap 2048 -config ~/.tidy.conf"
+    exec "normal v_v"
+endfunction
+vnoremap <F3> :FetchCURL<CR>