From bc5848f399e67dc773185811d7e194e385c78dc2 Mon Sep 17 00:00:00 2001 From: jdhao Date: Sat, 17 Oct 2020 01:27:39 +0800 Subject: [PATCH] update mappings --- mappings.vim | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mappings.vim b/mappings.vim index e9abf86..4ee7208 100644 --- a/mappings.vim +++ b/mappings.vim @@ -200,7 +200,10 @@ function! s:GoToBuffer(count, direction) abort return endif - silent execute('buffer' . a:count) + " Do not use {count} for gB (it is less useful) + if a:direction ==# 'forward' + silent execute('buffer' . a:count) + endif endfunction function! s:GetBufNums() abort