MicroPosts

  • Delete open Nvim buffers

    List all open buffers:

    :ls
    

    Close all open buffers:

    %bd!|e#|bd#
    
    • %bd! foreach buffer delete
    • e# open the last buffer for editing
    • bd# delete the [No Name] buffer

    Source: https://stackoverflow.com/questions/4545275/vim-close-all-buffers-but-this-one

  • Global find/replace in Nvim

    Fill the quickfix list with something like vim-grepper and:

    cdo %s/BEFORE/AFTER/gc
    

    cdo executes what comes after for each entry in the quickfix list (or use cfdo to run once per file).

PinkLetter

It's one of the selected few I follow every week – Mateusz

Tired of RELEARNING webdev stuff?

  • A 100+ page book with the best links I curated over the years
  • An email once a week full of timeless software wisdom
  • Your recommended weekly dose of pink
  • Try before you buy? Check the archives.