6
10

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

ctrlp.vim の設定例

Last updated at Posted at 2014-09-19

ctrlp.vim の設定例

オプション設定

" デフォルトのマッピングを無効化(default:'<C-p>')
let g:ctrlp_map = '<Nop>'

" 対象ファイル最大数(default:10000)
let g:ctrlp_max_files  = 100000

" 検索対象の最大階層数(default:40)
let g:ctrlp_max_depth = 10

" vim終了時にキャッシュクリアしない(default:1)
let g:ctrlp_clear_cache_on_exit = 0

" 検索ウィンドウの設定
" :help g:ctrlp_match_window
let g:ctrlp_match_window = 'bottom,order:btt,min:1,max:10,results:50'

キーマッピング


" カレントディレクトリを基準に検索
nnoremap <silent> <Space>cf :CtrlPCurWD<CR>

" カレントバッファのルートディレクトリを基準に検索(root:自動認識)
nnoremap <silent> <Space>cF :CtrlPRoot<CR>

" 最近使ったファイルから検索
nnoremap <silent> <Space>cr :CtrlPMRUFiles<CR>

検索窓表示中に使えるキー

キー 動作
<F5> キャッシュファイルを再構築
<C-r> 正規表現モードに切り替え(fuzzyモードとトグルする)
<C-p> 検索キーワードをさかのぼれる
<C-n> 上記の逆
6
10
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
10

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?