Guest User

Untitled

a guest
Feb 19th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. VIM allows execute external commands and replace neccessary line/block with the command output.
  2. * `:.` - current line
  3. * `:%` - full buffer
  4. * `:1,10` - line range
  5. * `:'<,'>` - visually selected block
  6.  
  7. Format JSON with jq
  8. ```
  9. :.!jq .
  10. ```
  11.  
  12. XML:
  13. ```
  14. :%!xmllint --format -
  15. ```
Add Comment
Please, Sign In to add comment