ctrlp.vim/plugin/ctrlp.vim

23 lines
668 B
VimL
Raw Normal View History

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
" ============================================================
if exists('g:loaded_ctrlp') && g:loaded_ctrlp
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>'