How do you pipe buffer contents to a shell command? :%!sort Use :%!command to filter the entire buffer through a shell command. category: command-line tags: #command-line #pipe #filter