Vim global

Updated: 31 May 2023

Execute [cmd] (default :p) on lines within [range] where {pattern} matches

:[range]g[lobal]/{pattern}/[cmd]

Delete blank lines

:g/^$/d

Leave a comment