From 4483e28fd649e9d31940b02efde86310d5986774 Mon Sep 17 00:00:00 2001 From: Michal Placek Date: Mon, 28 Jun 2021 23:23:30 +0200 Subject: [PATCH] vim-2335 Support for navigation to previous buffer with :b# --- src/com/maddyhome/idea/vim/ex/handler/BufferHandler.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/com/maddyhome/idea/vim/ex/handler/BufferHandler.kt b/src/com/maddyhome/idea/vim/ex/handler/BufferHandler.kt index 09b586ec0d..a68aa83f9d 100644 --- a/src/com/maddyhome/idea/vim/ex/handler/BufferHandler.kt +++ b/src/com/maddyhome/idea/vim/ex/handler/BufferHandler.kt @@ -51,6 +51,8 @@ class BufferHandler : CommandHandler.SingleExecution() { VimPlugin.showMessage(MessageHelper.message("buffer.0.does.not.exist", bufNum)) result = false } + } else if (buffer == "#") { + VimPlugin.getFile().selectPreviousTab(context) } else { val editors = findPartialMatch(context, buffer)