*In Visual Mode select the text to be sorted*
*Visual Mode* :'<,'>%sort
*Visual Mode Reverse* :'<,'>%sort!
*Visual Mode Numeric* :'<,'>sort n
use this Vim command to format the contents of a JSON file:
:%!python -m json.tool
*In Visual Mode select the text to be sorted*
*Visual Mode* :'<,'>%sort
*Visual Mode Reverse* :'<,'>%sort!
*Visual Mode Numeric* :'<,'>sort n
use this Vim command to format the contents of a JSON file:
:%!python -m json.tool