How do you filter a visual selection through an external command?
:'<,'>!sort -u
Select lines, then type ! which auto-expands to :'!.
:'<,'>!sort -u
Select lines, then type ! which auto-expands to :'!.
:tabdo %s/old/new/g
Use :tabdo to execute a command in every tab page.
:bufdo %s/old/new/g
Use :bufdo to execute a command in every buffer.
:put a
The :put a command pastes register a on a new line below the cursor.
:@:
The : register stores the last command-line command.