Skip to content

Commit db31499

Browse files
committed
Swaps out FuzzyFinder for CtrlP
Maintains significant keybindings for easier move over.
1 parent 8b74bbe commit db31499

2 files changed

Lines changed: 14 additions & 19 deletions

File tree

.vim/common_config/plugin_config.vim

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,18 @@
2525
Bundle "git://github.com/wgibbs/vim-irblack.git"
2626
Bundle "git://github.com/wavded/vim-stylus.git"
2727

28+
" CtrlP - with FuzzyFinder compatible keymaps
29+
Bundle "git://github.com/kien/ctrlp.vim.git"
30+
nnoremap <Leader>b :<C-U>CtrlPBuffer<CR>
31+
nnoremap <Leader>t :<C-U>CtrlP<CR>
32+
nnoremap <Leader>T :<C-U>CtrlPTag<CR>
33+
let g:ctrlp_prompt_mappings = {
34+
\ 'PrtSelectMove("j")': ['<down>'],
35+
\ 'PrtSelectMove("k")': ['<up>'],
36+
\ 'AcceptSelection("h")': ['<c-j>'],
37+
\ 'AcceptSelection("v")': ['<c-k>', '<RightMouse>'],
38+
\ }
39+
2840
Bundle "git://github.com/smerrill/vim-arduino.git"
2941
au BufNewFile,BufRead *.pde set filetype=arduino
3042
au BufNewFile,BufRead *.ino set filetype=arduino
@@ -125,23 +137,6 @@
125137
" shortcut to align text with Tabular
126138
map <Leader>a :Tabularize<space>
127139
128-
129-
" Fuzzy finder for quickling opening files / buffers
130-
Bundle "git://github.com/clones/vim-fuzzyfinder.git"
131-
let g:fuf_coveragefile_prompt = '>GoToFile[]>'
132-
let g:fuf_coveragefile_exclude = '\v\~$|' .
133-
\ '\.(o|exe|dll|bak|swp|log|sqlite3|png|gif|jpg)$|' .
134-
\ '(^|[/\\])\.(hg|git|bzr|bundle)($|[/\\])|' .
135-
\ '(^|[/\\])(log|tmp|vendor|system|doc|coverage|build|generated|node_modules)($|[/\\])'
136-
137-
let g:fuf_keyOpenTabpage = '<D-CR>'
138-
139-
nmap <Leader>t :FufCoverageFile<CR>
140-
nmap <Leader>b :FufBuffer<CR>
141-
nmap <Leader>f :FufRenewCache<CR>
142-
nmap <Leader>T :FufTagWithCursorWord!<CR>
143-
144-
145140
" ZoomWin to fullscreen a particular buffer without losing others
146141
Bundle "git://github.com/vim-scripts/ZoomWin.git"
147142
map <Leader>z :ZoomWin<CR>

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,10 @@ Common practice is to symlink a folder containing your custom configuration file
8787
* `Lidsa` - insert some lorem ipsum text
8888
* `rdebug` - insert ruby specfic debugger statement
8989

90-
## FuzzyFinder
90+
## CtrlP
9191

9292
Provides convenient ways to quickly reach the
93-
buffer/file/command/bookmark/tag you want. FuzzyFinder searches with the
93+
buffer/file/command/bookmark/tag you want. CtrlP searches with the
9494
fuzzy/partial pattern to which it converted an entered pattern.
9595

9696
* `<leader>t` - fuzzy find files

0 commit comments

Comments
 (0)