!
The
Operator
The ! command in Vim
Operator
external filter
Filter {motion} lines through an external shell command. The selected lines are replaced with the command's output.
!! filters the current line.Examples
!ip sort (sort paragraph)!} sort -r (sort next block reversed):.!date(insert date on current line)!G sort -u (sort + dedupe to EOF)
Reference
Learn every Vim command visually — right in your browser.
Add Vim What? to Chrome — FreeAlso on Firefox.
Related operators