denite.nvimとag使い始めた
かの有名な暗黒美夢王ことShougoさん開発中のdenite.nvimを使い始めました。いつもありがとうございます。超速くていい感じです。
install方法とか詳細な説明は以下のエントリが詳しいので割愛。
とりあえずdeniteの設定自体は :h denite
に載ってたのをとりあえず8割くらいコピペしました。
fast grepツールとしてagを使ってます。
設定はこんな感じになりました。
call denite#custom#var('file_rec', 'command', \ ['ag', '--follow', '--nocolor', '--nogroup', '-g', '']) call denite#custom#var('grep', 'command', ['ag']) call denite#custom#var('grep', 'recursive_opts', []) call denite#custom#var('grep', 'final_opts', []) call denite#custom#var('grep', 'separator', []) call denite#custom#var('grep', 'default_opts', \ ['--nocolor', '--nogroup']) nnoremap <silent> <C-k><C-f> :<C-u>Denite file_rec<CR> nnoremap <silent> <C-k><C-g> :<C-u>Denite grep<CR> nnoremap <silent> <C-k><C-l> :<C-u>Denite line<CR> nnoremap <silent> <C-k><C-u> :<C-u>Denite file_mru<CR> nnoremap <silent> <C-k><C-y> :<C-u>Denite neoyank<CR>
とりあえず :Denite grep
:Denite file_rec
あたりが快適なのでいろいろ捗ります。
pluginばっかりに頼ってると素のvim, grep, findあたりの使い方が怪しくなってくる。。。
- 作者: DrewNeil,新丈径
- 出版社/メーカー: KADOKAWA / アスキー・メディアワークス
- 発売日: 2014/01/28
- メディア: Kindle版
- この商品を含むブログ (3件) を見る