diff options
| author | Kien N | 2011-12-18 09:58:44 +0700 |
|---|---|---|
| committer | Kien N | 2011-12-18 09:58:44 +0700 |
| commit | 64dca5ec7961cbd4a5a7da460890e70ae8716db4 (patch) | |
| tree | 7807508eecb7938758e2368bd9ea75bc5599c829 /plugin | |
| parent | 0bd17c4462cf48823359d218b6bd785a68113673 (diff) | |
| download | ctrlp.vim-64dca5ec7961cbd4a5a7da460890e70ae8716db4.tar.gz | |
Custom ignore and default command options
1.6.4- Extend jump-to-open-buffer to use <c-t> when jumptobuffer = 2. Only works for buffers opened in another tab. Suggested by @hail2u.
- Add g:ctrlpdefaultcmd, option to reuse the default mapping for a different command. Close #57.
- Add g:ctrlpcustomignore. Close #58.
Diffstat (limited to 'plugin')
| -rw-r--r-- | plugin/ctrlp.vim | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/plugin/ctrlp.vim b/plugin/ctrlp.vim index a0bf585..e3b354d 100644 --- a/plugin/ctrlp.vim +++ b/plugin/ctrlp.vim @@ -11,21 +11,22 @@ en let [g:loaded_ctrlp, g:ctrlp_lines, g:ctrlp_allfiles] = [1, [], []] if !exists('g:ctrlp_map') | let g:ctrlp_map = '<c-p>' | en +if !exists('g:ctrlp_cmd') | let g:ctrlp_cmd = 'CtrlP' | en com! -na=? -comp=custom,ctrlp#cpl CtrlP cal ctrlp#init(0, <q-args>) com! CtrlPBuffer cal ctrlp#init(1) com! CtrlPMRUFiles cal ctrlp#init(2) -com! ClearCtrlPCache cal ctrlp#clr() +com! ClearCtrlPCache cal ctrlp#clr() com! ClearAllCtrlPCaches cal ctrlp#clra() -com! ResetCtrlP cal ctrlp#reset() +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) -exe 'nn <silent>' g:ctrlp_map ':<c-u>CtrlP<cr>' +exe 'nn <silent>' g:ctrlp_map ':<c-u>'.g:ctrlp_cmd.'<cr>' cal ctrlp#mrufiles#init() |