Mercurial > public > dotfiles
comparison vim/vimfiles/plugin/ctrlp.vim @ 3:92af3257a261
Update to latest ctrlp.vim.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Wed, 04 Jan 2012 19:37:22 -0600 |
parents | 48859d9c82c5 |
children |
comparison
equal
deleted
inserted
replaced
2:611e13daeafb | 3:92af3257a261 |
---|---|
9 fini | 9 fini |
10 en | 10 en |
11 let [g:loaded_ctrlp, g:ctrlp_lines, g:ctrlp_allfiles] = [1, [], []] | 11 let [g:loaded_ctrlp, g:ctrlp_lines, g:ctrlp_allfiles] = [1, [], []] |
12 | 12 |
13 if !exists('g:ctrlp_map') | let g:ctrlp_map = '<c-p>' | en | 13 if !exists('g:ctrlp_map') | let g:ctrlp_map = '<c-p>' | en |
14 if !exists('g:ctrlp_cmd') | let g:ctrlp_cmd = 'CtrlP' | en | |
14 | 15 |
15 com! -na=? -comp=custom,ctrlp#cpl CtrlP cal ctrlp#init(0, <q-args>) | 16 com! -n=? -com=custom,ctrlp#cpl CtrlP cal ctrlp#init(0, <q-args>) |
16 | 17 |
17 com! CtrlPBuffer cal ctrlp#init(1) | 18 com! CtrlPBuffer cal ctrlp#init(1) |
18 com! CtrlPMRUFiles cal ctrlp#init(2) | 19 com! CtrlPMRUFiles cal ctrlp#init(2) |
19 | 20 |
20 com! ClearCtrlPCache cal ctrlp#clr() | 21 com! ClearCtrlPCache cal ctrlp#clr() |
21 com! ClearAllCtrlPCaches cal ctrlp#clra() | 22 com! ClearAllCtrlPCaches cal ctrlp#clra() |
22 com! ResetCtrlP cal ctrlp#reset() | 23 com! ResetCtrlP cal ctrlp#reset() |
23 | 24 |
24 com! CtrlPCurWD cal ctrlp#init(0, 0) | 25 com! CtrlPCurWD cal ctrlp#init(0, 0) |
25 com! CtrlPCurFile cal ctrlp#init(0, 1) | 26 com! CtrlPCurFile cal ctrlp#init(0, 1) |
26 com! CtrlPRoot cal ctrlp#init(0, 2) | 27 com! CtrlPRoot cal ctrlp#init(0, 2) |
27 | 28 |
28 exe 'nn <silent>' g:ctrlp_map ':<c-u>CtrlP<cr>' | 29 exe 'nn <silent>' g:ctrlp_map ':<c-u>'.g:ctrlp_cmd.'<cr>' |
29 | 30 |
30 cal ctrlp#mrufiles#init() | 31 cal ctrlp#mrufiles#init() |
31 | 32 |
32 if !exists('g:ctrlp_extensions') | fini | en | 33 if !exists('g:ctrlp_extensions') | fini | en |
33 | 34 |
38 if index(g:ctrlp_extensions, 'quickfix') >= 0 | 39 if index(g:ctrlp_extensions, 'quickfix') >= 0 |
39 com! CtrlPQuickfix cal ctrlp#init(ctrlp#quickfix#id()) | 40 com! CtrlPQuickfix cal ctrlp#init(ctrlp#quickfix#id()) |
40 en | 41 en |
41 | 42 |
42 if index(g:ctrlp_extensions, 'dir') >= 0 | 43 if index(g:ctrlp_extensions, 'dir') >= 0 |
43 let g:ctrlp_alldirs = [] | com! CtrlPDir cal ctrlp#init(ctrlp#dir#id()) | 44 let g:ctrlp_alldirs = [] |
45 com! -n=? -com=custom,ctrlp#cpl CtrlPDir | |
46 \ cal ctrlp#init(ctrlp#dir#id(), <q-args>) | |
44 en | 47 en |
48 | |
49 if index(g:ctrlp_extensions, 'buffertag') >= 0 | |
50 let g:ctrlp_buftags = {} | |
51 com! CtrlPBufTag cal ctrlp#init(ctrlp#buffertag#id()) | |
52 en |