[問題] ctrlp search 卡頓

看板Editor (編輯器(vim/emacs))作者 (yshihyu)時間9年前 (2015/12/29 00:56), 編輯推噓1(103)
留言4則, 2人參與, 最新討論串1/1
我啟動 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://www.ptt.cc/bbs/Editor/M.1451321807.A.B9D.html

12/29 19:26, , 1F
建議換 fzf,速度快非常多
12/29 19:26, 1F

12/29 23:17, , 2F
剛剛試了fzf速度的確滿快, 想請問一下在vim可以new tab嗎
12/29 23:17, 2F

12/31 01:00, , 3F
搞定用 call fzf#run({'sink': 'tabe'}) 就可以
12/31 01:00, 3F

12/31 01:00, , 4F
果然是好東西~非常感謝
12/31 01:00, 4F
文章代碼(AID): #1MWMdFkT (Editor)
文章代碼(AID): #1MWMdFkT (Editor)