How do you pipe buffer contents to a shell command?
:%!sort
Use :%!command to filter the entire buffer through a shell command.
:%!sort
Use :%!command to filter the entire buffer through a shell command.
:'<,'>!sort -u
Select lines, then type ! which auto-expands to :'!.