annotate vim/vimfiles/plugin/ctrlp.vim @ 4:6bb800967ce5

Turn off spell checking by default. Use the Unix/Linux syntax for wildignore.
author Brian Neal <bgneal@gmail.com>
date Thu, 05 Jan 2012 20:05:42 -0600
parents 92af3257a261
children
rev   line source
bgneal@0 1 " =============================================================================
bgneal@0 2 " File: plugin/ctrlp.vim
bgneal@0 3 " Description: Fuzzy file, buffer, mru and tag finder.
bgneal@0 4 " Author: Kien Nguyen <github.com/kien>
bgneal@0 5 " =============================================================================
bgneal@0 6 " GetLatestVimScripts: 3736 1 :AutoInstall: ctrlp.zip
bgneal@0 7
bgneal@0 8 if ( exists('g:loaded_ctrlp') && g:loaded_ctrlp ) || v:version < 700 || &cp
bgneal@0 9 fini
bgneal@0 10 en
bgneal@0 11 let [g:loaded_ctrlp, g:ctrlp_lines, g:ctrlp_allfiles] = [1, [], []]
bgneal@0 12
bgneal@0 13 if !exists('g:ctrlp_map') | let g:ctrlp_map = '<c-p>' | en
bgneal@3 14 if !exists('g:ctrlp_cmd') | let g:ctrlp_cmd = 'CtrlP' | en
bgneal@0 15
bgneal@3 16 com! -n=? -com=custom,ctrlp#cpl CtrlP cal ctrlp#init(0, <q-args>)
bgneal@0 17
bgneal@0 18 com! CtrlPBuffer cal ctrlp#init(1)
bgneal@0 19 com! CtrlPMRUFiles cal ctrlp#init(2)
bgneal@0 20
bgneal@3 21 com! ClearCtrlPCache cal ctrlp#clr()
bgneal@0 22 com! ClearAllCtrlPCaches cal ctrlp#clra()
bgneal@3 23 com! ResetCtrlP cal ctrlp#reset()
bgneal@0 24
bgneal@0 25 com! CtrlPCurWD cal ctrlp#init(0, 0)
bgneal@0 26 com! CtrlPCurFile cal ctrlp#init(0, 1)
bgneal@0 27 com! CtrlPRoot cal ctrlp#init(0, 2)
bgneal@0 28
bgneal@3 29 exe 'nn <silent>' g:ctrlp_map ':<c-u>'.g:ctrlp_cmd.'<cr>'
bgneal@0 30
bgneal@0 31 cal ctrlp#mrufiles#init()
bgneal@0 32
bgneal@0 33 if !exists('g:ctrlp_extensions') | fini | en
bgneal@0 34
bgneal@0 35 if index(g:ctrlp_extensions, 'tag') >= 0
bgneal@0 36 let g:ctrlp_alltags = [] | com! CtrlPTag cal ctrlp#init(ctrlp#tag#id())
bgneal@0 37 en
bgneal@0 38
bgneal@0 39 if index(g:ctrlp_extensions, 'quickfix') >= 0
bgneal@0 40 com! CtrlPQuickfix cal ctrlp#init(ctrlp#quickfix#id())
bgneal@0 41 en
bgneal@0 42
bgneal@0 43 if index(g:ctrlp_extensions, 'dir') >= 0
bgneal@3 44 let g:ctrlp_alldirs = []
bgneal@3 45 com! -n=? -com=custom,ctrlp#cpl CtrlPDir
bgneal@3 46 \ cal ctrlp#init(ctrlp#dir#id(), <q-args>)
bgneal@0 47 en
bgneal@3 48
bgneal@3 49 if index(g:ctrlp_extensions, 'buffertag') >= 0
bgneal@3 50 let g:ctrlp_buftags = {}
bgneal@3 51 com! CtrlPBufTag cal ctrlp#init(ctrlp#buffertag#id())
bgneal@3 52 en