vimtricks.wiki Concise Vim tricks, one at a time.

How do you filter a visual selection through an external command?

Answer

:'<,'>!sort -u

Explanation

Select lines, then type ! which auto-expands to :'<,'>!. Add any shell command like sort -u to filter the selection through it.

Next

How do I visually select a double-quoted string including the quotes themselves?