Thursday, April 24, 2014

VIM useful commands

:sort
to sort all the lines in the current file

:sort u
to sort and then unique all the lines in the current file

:%!sort -R
to shuffle all the lines in the current file

:%!xxd
to view the current file in hex mode


No comments: