Skip to content

Commit 8a3e49f

Browse files
committed
Remove redundant keybindings for fuzzy finder
Some time in config history, CtrlP replaced FuzzyFinder. These were the compatibility keybindings. However, CtrlP already has keys for these commands. Accept selection and open in vertical split: <c-v> Accept selection and open in horizontal split: <c-s> Let’s use those keys, so we can actually navigate the CtrlP window with the standard vim home row keys! Move up in the CtrlP selection window: <c-k> Move down in the CtrlP selection window: <c-j>
1 parent 5753f38 commit 8a3e49f

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

.vim/common_config/01_plugin_config.vim

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,17 +53,12 @@
5353
nmap <Leader>qa <Plug>DashGlobalSearch
5454
5555

56-
" CtrlP - with FuzzyFinder compatible keymaps
56+
" CtrlP
5757
Bundle "git://github.com/kien/ctrlp.vim.git"
5858
nnoremap <Leader>b :<C-U>CtrlPBuffer<CR>
5959
nnoremap <Leader>t :<C-U>CtrlP<CR>
6060
nnoremap <Leader>T :<C-U>CtrlPTag<CR>
61-
let g:ctrlp_prompt_mappings = {
62-
\ 'PrtSelectMove("j")': ['<down>'],
63-
\ 'PrtSelectMove("k")': ['<up>'],
64-
\ 'AcceptSelection("h")': ['<c-j>'],
65-
\ 'AcceptSelection("v")': ['<c-k>', '<RightMouse>'],
66-
\ }
61+
6762
" respect the .gitignore
6863
let g:ctrlp_user_command = ['.git', 'cd %s && git ls-files . --cached --exclude-standard --others']
6964

0 commit comments

Comments
 (0)