docker-odoo-image icon indicating copy to clipboard operation
docker-odoo-image copied to clipboard

[ADD] add xml pretty print to VIM

Open umiphos opened this issue 7 years ago • 0 comments

In order to have a XML pretty print we need to install a library and edit the vimrc

  1. Install xmllint (en ubuntu se encuentra dentro de libxml2-utils)
  2. Add this line to ~/.vimrc

:map <F5> : silent %!xmllint --encode UTF-8 --format - :bnext <CR>

With this we mapped the key F5 as default key for this action. Remember that this action edit the current document.

umiphos avatar Jun 05 '17 04:06 umiphos