Remove an obsolete command

This commit is contained in:
Kien N 2012-09-10 20:31:50 +07:00
parent 4a66d00bc9
commit c3eba28192
2 changed files with 9 additions and 11 deletions

View File

@ -6,7 +6,8 @@
" ============================================================================= " =============================================================================
" ** Static variables {{{1 " ** Static variables {{{1
fu! s:ignore() "{{{2 " s:ignore() {{{2
fu! s:ignore()
let igdirs = [ let igdirs = [
\ '\.git', \ '\.git',
\ '\.hg', \ '\.hg',
@ -48,8 +49,8 @@ fu! s:ignore() "{{{2
\ 'dir': '\v[\/]('.join(igdirs, '|').')$', \ 'dir': '\v[\/]('.join(igdirs, '|').')$',
\ 'file': '\v'.join(igfiles, '|'), \ 'file': '\v'.join(igfiles, '|'),
\ } \ }
endf "}}}2 endf
" Options " Script local vars {{{2
let [s:pref, s:bpref, s:opts, s:new_opts, s:lc_opts] = let [s:pref, s:bpref, s:opts, s:new_opts, s:lc_opts] =
\ ['g:ctrlp_', 'b:ctrlp_', { \ ['g:ctrlp_', 'b:ctrlp_', {
\ 'arg_map': ['s:argmap', 0], \ 'arg_map': ['s:argmap', 0],
@ -180,9 +181,8 @@ let s:hlgrps = {
\ 'PrtText': 'Normal', \ 'PrtText': 'Normal',
\ 'PrtCursor': 'Constant', \ 'PrtCursor': 'Constant',
\ } \ }
" s:opts() {{{2
fu! s:opts() "{{{2 fu! s:opts()
" Options
unl! s:usrign s:usrcmd s:urprtmaps unl! s:usrign s:usrcmd s:urprtmaps
for each in ['byfname', 'regexp', 'extensions'] | if exists('s:'.each) for each in ['byfname', 'regexp', 'extensions'] | if exists('s:'.each)
let {each} = s:{each} let {each} = s:{each}
@ -226,7 +226,6 @@ endf
"}}}1 "}}}1
" * Open & Close {{{1 " * Open & Close {{{1
fu! s:Open() fu! s:Open()
let s:ermsg = v:errmsg
cal s:log(1) cal s:log(1)
cal s:getenv() cal s:getenv()
cal s:execextvar('enter') cal s:execextvar('enter')
@ -285,7 +284,7 @@ fu! ctrlp#clra()
cal ctrlp#clr() cal ctrlp#clr()
endf endf
fu! ctrlp#reset() fu! s:Reset()
cal s:opts() cal s:opts()
cal s:autocmds() cal s:autocmds()
cal ctrlp#utils#opts() cal ctrlp#utils#opts()
@ -1988,8 +1987,9 @@ endf
fu! ctrlp#init(type, ...) fu! ctrlp#init(type, ...)
if exists('s:init') || s:iscmdwin() | retu | en if exists('s:init') || s:iscmdwin() | retu | en
let [s:ermsg, v:errmsg] = [v:errmsg, '']
let [s:matches, s:init] = [1, 1] let [s:matches, s:init] = [1, 1]
cal ctrlp#reset() cal s:Reset()
noa cal s:Open() noa cal s:Open()
cal s:SetWD(a:0 ? a:1 : {}) cal s:SetWD(a:0 ? a:1 : {})
cal s:MapNorms() cal s:MapNorms()

View File

@ -25,11 +25,9 @@ com! -n=? CtrlPLastMode cal ctrlp#init(-1, { 'args': <q-args> })
com! -bar CtrlPClearCache cal ctrlp#clr() com! -bar CtrlPClearCache cal ctrlp#clr()
com! -bar CtrlPClearAllCaches cal ctrlp#clra() com! -bar CtrlPClearAllCaches cal ctrlp#clra()
com! -bar CtrlPReload cal ctrlp#reset()
com! -bar ClearCtrlPCache cal ctrlp#clr() com! -bar ClearCtrlPCache cal ctrlp#clr()
com! -bar ClearAllCtrlPCaches cal ctrlp#clra() com! -bar ClearAllCtrlPCaches cal ctrlp#clra()
com! -bar ResetCtrlP cal ctrlp#reset()
com! -bar CtrlPCurWD cal ctrlp#init(0, { 'mode': '' }) com! -bar CtrlPCurWD cal ctrlp#init(0, { 'mode': '' })
com! -bar CtrlPCurFile cal ctrlp#init(0, { 'mode': 'c' }) com! -bar CtrlPCurFile cal ctrlp#init(0, { 'mode': 'c' })