aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/plugin
diff options
context:
space:
mode:
authorKien N2011-11-28 19:52:28 +0700
committerKien N2011-11-28 19:52:28 +0700
commitef9e072c5fcd57f6fcebb39405a677b7aae48e8e (patch)
tree41603d6426ac994c5b98e4dea1747b72c0bf3285 /plugin
parentdee2f5a9989c8bb0782c6bbdbc95efb326fac806 (diff)
downloadctrlp.vim-ef9e072c5fcd57f6fcebb39405a677b7aae48e8e.tar.gz

Tag and Quickfix extensions

1.6.2
  • New extensions for searching tag and quickfix.
  • Option to update the results lazily. Close #37.
Diffstat (limited to 'plugin')
-rw-r--r--plugin/ctrlp.vim12
1 files changed, 10 insertions, 2 deletions
diff --git a/plugin/ctrlp.vim b/plugin/ctrlp.vim
index f91aa36..b2967ab 100644
--- a/plugin/ctrlp.vim
+++ b/plugin/ctrlp.vim
@@ -8,7 +8,7 @@
if ( exists('g:loaded_ctrlp') && g:loaded_ctrlp ) || v:version < 700 || &cp
fini
en
-let g:loaded_ctrlp = 1
+let [g:loaded_ctrlp, g:ctrlp_lines, g:ctrlp_allfiles] = [1, [], []]
if !exists('g:ctrlp_map') | let g:ctrlp_map = '<c-p>' | en
@@ -29,4 +29,12 @@ exe 'nn <silent>' g:ctrlp_map ':<c-u>CtrlP<cr>'
cal ctrlp#mrufiles#init()
-let [g:ctrlp_lines, g:ctrlp_allfiles] = [[], []]
+if !exists('g:ctrlp_extensions') | fini | en
+
+if index(g:ctrlp_extensions, 'tag') >= 0
+ let g:ctrlp_alltags = {} | com! CtrlPTag cal ctrlp#init(ctrlp#tag#id())
+en
+
+if index(g:ctrlp_extensions, 'quickfix') >= 0
+ com! CtrlPQuickfix cal ctrlp#init(ctrlp#quickfix#id())
+en