DEV Community

Discussion on: Type less and save time with Vim's global command!

Collapse
 
rgaiken profile image
rgaiken

Same. I like to search first to see where I wrote the console statements (and ensure that they aren't inline with something important), then do :g//d (if you leave the search blank it'll just use whatever is in your search buffer)

Collapse
 
iggredible profile image
Igor Irianto

That's right, vim repeats the last search if we leave pattern blank (//)! Good call!