MicroPosts
- Delete open Nvim buffers
List all open buffers:
:ls
Close all open buffers:
%bd!|e#|bd#
%bd!
foreach buffer deletee#
open the last buffer for editingbd#
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 usecfdo
to run once per file).