作者yshihyu (yshihyu)
看板Editor
标题[问题] ctrlp search 卡顿
时间Tue Dec 29 00:56:43 2015
我启动 ctrlp 搜寻 linux kernel 档案在输入关键字时候会卡顿
有办法让他顺畅吗? 因为档案几万个 , 还是这就是无解?
下面是我目前设定
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_by_filename = 1 " only lookup file name
let g:ctrlp_cache_dir = '/tmp/ctrlp/cache/'
let g:ctrlp_working_path_mode=0
let g:ctrlp_match_window_bottom=1
let g:ctrlp_follow_symlinks=1
let g:ctrlp_max_height=15
let g:ctrlp_match_window_reversed=0
let g:ctrlp_max_files = 1000000
let g:ctrlp_mruf_max=500
let g:ctrlp_follow_symlinks=1
let g:ctrlp_prompt_mappings = {
\ 'AcceptSelection("e")': ['<c-t>', '<2-LeftMouse>'],
\ 'AcceptSelection("t")': ['<cr>'],
\ }
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 175.182.193.203
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/Editor/M.1451321807.A.B9D.html
1F:推 kusoayan: 建议换 fzf,速度快非常多 12/29 19:26
2F:→ yshihyu: 刚刚试了fzf速度的确满快, 想请问一下在vim可以new tab吗 12/29 23:17
3F:→ yshihyu: 搞定用 call fzf#run({'sink': 'tabe'}) 就可以 12/31 01:00
4F:→ yshihyu: 果然是好东西~非常感谢 12/31 01:00