How to (safely) swap the contents of two files opened in (neo)vim buffers

Raise your hand if you’ve been here before: you have file1 open in a vim or neovim buffer and you want to “fork” its contents over to file2, but you need to reference file1 while you do so. So you … Continue reading →