From a4882053b46a6758d14966d14ad51ef82aebc1b3 Mon Sep 17 00:00:00 2001 From: Kien N Date: Tue, 19 Jun 2012 22:49:09 +0700 Subject: [PATCH] Ignore the vertical bar --- plugin/ctrlp.vim | 43 +++++++++++++++++++++---------------------- 1 file changed, 21 insertions(+), 22 deletions(-) diff --git a/plugin/ctrlp.vim b/plugin/ctrlp.vim index 245f712..f717583 100644 --- a/plugin/ctrlp.vim +++ b/plugin/ctrlp.vim @@ -19,22 +19,21 @@ if !exists('g:ctrlp_cmd') | let g:ctrlp_cmd = 'CtrlP' | en com! -n=? -com=dir CtrlP cal ctrlp#init(0, ) -com! CtrlPBuffer cal ctrlp#init(1) -com! CtrlPMRUFiles cal ctrlp#init(2) +com! -bar CtrlPBuffer cal ctrlp#init(1) +com! -bar CtrlPMRUFiles cal ctrlp#init(2) +com! -bar CtrlPLastMode cal ctrlp#init(-1) -com! CtrlPLastMode cal ctrlp#init(-1) +com! -bar CtrlPClearCache cal ctrlp#clr() +com! -bar CtrlPClearAllCaches cal ctrlp#clra() +com! -bar CtrlPReload cal ctrlp#reset() -com! CtrlPClearCache cal ctrlp#clr() -com! CtrlPClearAllCaches cal ctrlp#clra() -com! CtrlPReload cal ctrlp#reset() +com! -bar ClearCtrlPCache cal ctrlp#clr() +com! -bar ClearAllCtrlPCaches cal ctrlp#clra() +com! -bar ResetCtrlP cal ctrlp#reset() -com! ClearCtrlPCache cal ctrlp#clr() -com! ClearAllCtrlPCaches cal ctrlp#clra() -com! ResetCtrlP cal ctrlp#reset() - -com! CtrlPCurWD cal ctrlp#init(0, 0) -com! CtrlPCurFile cal ctrlp#init(0, 1) -com! CtrlPRoot cal ctrlp#init(0, 2) +com! -bar CtrlPCurWD cal ctrlp#init(0, 0) +com! -bar CtrlPCurFile cal ctrlp#init(0, 1) +com! -bar CtrlPRoot cal ctrlp#init(0, 2) if g:ctrlp_map != '' && !hasmapto(':'.g:ctrlp_cmd.'', 'n') exe 'nn ' g:ctrlp_map ':'.g:ctrlp_cmd.'' @@ -42,20 +41,20 @@ en cal ctrlp#mrufiles#init() -com! CtrlPTag cal ctrlp#init(ctrlp#tag#id()) -com! CtrlPQuickfix cal ctrlp#init(ctrlp#quickfix#id()) +com! -bar CtrlPTag cal ctrlp#init(ctrlp#tag#id()) +com! -bar CtrlPQuickfix cal ctrlp#init(ctrlp#quickfix#id()) com! -n=? -com=dir CtrlPDir \ cal ctrlp#init(ctrlp#dir#id(), ) com! -n=? -com=buffer CtrlPBufTag \ cal ctrlp#init(ctrlp#buffertag#cmd(0, )) -com! CtrlPBufTagAll cal ctrlp#init(ctrlp#buffertag#cmd(1)) -com! CtrlPRTS cal ctrlp#init(ctrlp#rtscript#id()) -com! CtrlPUndo cal ctrlp#init(ctrlp#undo#id()) -com! CtrlPLine cal ctrlp#init(ctrlp#line#id()) +com! -bar CtrlPBufTagAll cal ctrlp#init(ctrlp#buffertag#cmd(1)) +com! -bar CtrlPRTS cal ctrlp#init(ctrlp#rtscript#id()) +com! -bar CtrlPUndo cal ctrlp#init(ctrlp#undo#id()) +com! -bar CtrlPLine cal ctrlp#init(ctrlp#line#id()) com! -n=? -com=buffer CtrlPChange \ cal ctrlp#init(ctrlp#changes#cmd(0, )) -com! CtrlPChangeAll cal ctrlp#init(ctrlp#changes#cmd(1)) -com! CtrlPMixed cal ctrlp#init(ctrlp#mixed#id()) -com! CtrlPBookmarkDir cal ctrlp#init(ctrlp#bookmarkdir#id()) +com! -bar CtrlPChangeAll cal ctrlp#init(ctrlp#changes#cmd(1)) +com! -bar CtrlPMixed cal ctrlp#init(ctrlp#mixed#id()) +com! -bar CtrlPBookmarkDir cal ctrlp#init(ctrlp#bookmarkdir#id()) com! -n=? -com=dir CtrlPBookmarkDirAdd \ cal ctrlp#call('ctrlp#bookmarkdir#add', )