Search code examples
sortingvilinux-mintuniq

sort command on vi: E319: Sorry, the command is not available in this version


I was trying to sort lines in vi. When I used the command :sort, I get

E319: Sorry, the command is not available in this version

I work on Linux Mint and I already updated everything.

Is there an alternative?


Solution

  • You can use :!sort to use the external Unix command line sort.