Mercurial > public > dotfiles
comparison vim/vimfiles/plugin/ctrlp.vim @ 0:48859d9c82c5
Initial commit, based on settings used at work (minus NERD tree & some
tagging plugins).
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Tue, 03 Jan 2012 20:53:13 -0600 |
parents | |
children | 92af3257a261 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:48859d9c82c5 |
---|---|
1 " ============================================================================= | |
2 " File: plugin/ctrlp.vim | |
3 " Description: Fuzzy file, buffer, mru and tag finder. | |
4 " Author: Kien Nguyen <github.com/kien> | |
5 " ============================================================================= | |
6 " GetLatestVimScripts: 3736 1 :AutoInstall: ctrlp.zip | |
7 | |
8 if ( exists('g:loaded_ctrlp') && g:loaded_ctrlp ) || v:version < 700 || &cp | |
9 fini | |
10 en | |
11 let [g:loaded_ctrlp, g:ctrlp_lines, g:ctrlp_allfiles] = [1, [], []] | |
12 | |
13 if !exists('g:ctrlp_map') | let g:ctrlp_map = '<c-p>' | en | |
14 | |
15 com! -na=? -comp=custom,ctrlp#cpl CtrlP cal ctrlp#init(0, <q-args>) | |
16 | |
17 com! CtrlPBuffer cal ctrlp#init(1) | |
18 com! CtrlPMRUFiles cal ctrlp#init(2) | |
19 | |
20 com! ClearCtrlPCache cal ctrlp#clr() | |
21 com! ClearAllCtrlPCaches cal ctrlp#clra() | |
22 com! ResetCtrlP cal ctrlp#reset() | |
23 | |
24 com! CtrlPCurWD cal ctrlp#init(0, 0) | |
25 com! CtrlPCurFile cal ctrlp#init(0, 1) | |
26 com! CtrlPRoot cal ctrlp#init(0, 2) | |
27 | |
28 exe 'nn <silent>' g:ctrlp_map ':<c-u>CtrlP<cr>' | |
29 | |
30 cal ctrlp#mrufiles#init() | |
31 | |
32 if !exists('g:ctrlp_extensions') | fini | en | |
33 | |
34 if index(g:ctrlp_extensions, 'tag') >= 0 | |
35 let g:ctrlp_alltags = [] | com! CtrlPTag cal ctrlp#init(ctrlp#tag#id()) | |
36 en | |
37 | |
38 if index(g:ctrlp_extensions, 'quickfix') >= 0 | |
39 com! CtrlPQuickfix cal ctrlp#init(ctrlp#quickfix#id()) | |
40 en | |
41 | |
42 if index(g:ctrlp_extensions, 'dir') >= 0 | |
43 let g:ctrlp_alldirs = [] | com! CtrlPDir cal ctrlp#init(ctrlp#dir#id()) | |
44 en |