



























k-vim配置 github
使用频率最高的插件之一
作用: 模糊搜索, 可以搜索文件/buffer/mru/tag等等
github: 原始kien/ctrlp, 使用的是国人改进版本 ctrlpvim/ctrlp.vim
Bundle 'ctrlpvim/ctrlp.vim'
绑定快捷键
<leader>-f模糊搜索最近打开的文件(MRU)
<leader>-p模糊搜索当前目录及其子目录下的所有文件
搜索框出来后, 输入关键字, 然后
ctrl + j/k 进行上下选择
ctrl + x 在当前窗口水平分屏打开文件
ctrl + v 同上, 垂直分屏
ctrl + t 在tab中打开

Bundle 'ctrlpvim/ctrlp.vim'
let g:ctrlp_map = '<leader>p'
let g:ctrlp_cmd = 'CtrlP'
map <leader>f :CtrlPMRU<CR>
let g:ctrlp_custom_ignore = {
\ 'dir': '\v[\/]\.(git|hg|svn|rvm)$',
\ 'file': '\v\.(exe|so|dll|zip|tar|tar.gz|pyc)$',
\ }
let g:ctrlp_working_path_mode=0
let g:ctrlp_match_window_bottom=1
let g:ctrlp_max_height=15
let g:ctrlp_match_window_reversed=0
let g:ctrlp_mruf_max=500
let g:ctrlp_follow_symlinks=1
fuzzyfinder / Command-T:CtrlPMixed, 就可以一键搜索文件/buffer/mructrlp-funky作用: 模糊搜索当前文件中所有函数
github: ctrlp-funky
Bundle 'tacahiroy/ctrlp-funky'
绑定快捷键
<leader>fu 进入当前文件的函数列表搜索
<leader>fU 搜索当前光标下单词对应的函数

Bundle 'tacahiroy/ctrlp-funky'
nnoremap <Leader>fu :CtrlPFunky<Cr>
" narrow the list down with a word under cursor
nnoremap <Leader>fU :execute 'CtrlPFunky ' . expand('<cword>')<Cr>
let g:ctrlp_funky_syntax_highlight = 1
let g:ctrlp_extensions = ['funky']
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。