From 5e3c2105fa508de1d83953567429f076c636504c Mon Sep 17 00:00:00 2001 From: tyru Date: Sat, 30 Jan 2010 03:03:41 +0900 Subject: [PATCH] apply the patch. thanks to Jan Christoph. --- plugin/dumbbuf.vim | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/plugin/dumbbuf.vim b/plugin/dumbbuf.vim index 9754d7a..656eeac 100644 --- a/plugin/dumbbuf.vim +++ b/plugin/dumbbuf.vim @@ -126,6 +126,8 @@ scriptencoding utf-8 " :edit buffer. " u " open one by one. this is same as QuickBuf's u. +" g +" :sbuffer buffer. " s " :split buffer. " v @@ -798,6 +800,20 @@ func! s:compile_mappings() \'post': ['save_lnum']}), \string('v')) \}, + \'g': { + \'opt': '', + \'mapto': + \printf(fmt_tmp, + \string('sbuffer %d'), + \string({ + \'type': 'cmd', + \'requires_args': 1, + \'process_marked': 1, + \'pre': ['close_return_if_empty', + \'close_dumbbuf', 'jump_to_caller'], + \'post': ['save_lnum']}), + \string('v')) + \}, \'s': { \'opt': '', \'mapto': @@ -982,6 +998,20 @@ func! s:compile_mappings() \'post': ['save_lnum']}), \string('n')) \}, + \'g': { + \'opt': '', + \'mapto': + \printf(fmt_tmp, + \string('sbuffer %d'), + \string({ + \'type': 'cmd', + \'requires_args': 1, + \'process_marked': 1, + \'pre': ['close_return_if_empty', + \'close_dumbbuf', 'jump_to_caller'], + \'post': ['save_lnum']}), + \string('n')) + \}, \'s': { \'opt': '', \'mapto':