2011-06-21 08:21:58 +07:00
|
|
|
" ============================================================
|
|
|
|
" File: plugin/ctrlp.vim
|
2011-08-22 09:14:00 +07:00
|
|
|
" Description: Full path fuzzy file finder for Vim.
|
2011-06-21 08:21:58 +07:00
|
|
|
" Author: Kien Nguyen <info@designtomarkup.com>
|
|
|
|
" License: MIT
|
|
|
|
" ============================================================
|
|
|
|
|
2011-09-05 21:59:18 +07:00
|
|
|
if ( exists('g:loaded_ctrlp') && g:loaded_ctrlp )
|
|
|
|
\ || v:version < '700'
|
2011-08-22 09:14:00 +07:00
|
|
|
fini
|
2011-06-21 08:21:58 +07:00
|
|
|
endif
|
|
|
|
let g:loaded_ctrlp = 1
|
|
|
|
|
2011-08-22 09:14:00 +07:00
|
|
|
if !exists('g:ctrlp_map')
|
|
|
|
let g:ctrlp_map = '<c-p>'
|
2011-06-21 08:21:58 +07:00
|
|
|
endif
|
|
|
|
|
2011-09-05 18:05:04 +07:00
|
|
|
com! CtrlP cal ctrlp#init(0)
|
|
|
|
com! CtrlPBuffer cal ctrlp#init(1)
|
2011-08-22 09:14:00 +07:00
|
|
|
com! ClearCtrlPCache cal ctrlp#clearcache()
|
|
|
|
com! ClearAllCtrlPCaches cal ctrlp#clearallcaches()
|
2011-06-21 08:21:58 +07:00
|
|
|
|
2011-08-22 09:14:00 +07:00
|
|
|
exe 'nn <silent>' g:ctrlp_map ':<c-u>CtrlP<cr>'
|