From abeb2a9e02813dd8fb54dca23eb2220e8fe49297 Mon Sep 17 00:00:00 2001 From: Edward Litherland-Smith Date: Wed, 20 Jan 2021 14:51:32 +0000 Subject: [PATCH] Add BufOnly command to close all buffers other than current --- vimrc | 1 + 1 file changed, 1 insertion(+) diff --git a/vimrc b/vimrc index d8afa153..72868ab5 100644 --- a/vimrc +++ b/vimrc @@ -30,6 +30,7 @@ noremap imap jk command Bd b# | bd # +command! BufOnly silent! execute "%bd|e#|bd#" set splitbelow set splitright