11
6

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.

fzf.vimを使ってctags検索をしてみる

Last updated at Posted at 2018-02-06

ctagsの検索にfzfが良いよと教えてもらったので、試してみました。

Install

fzf

まずはHomebrewでfzfをインストール

$ brew install fzf

.vimrcに追記

set rtp+=/usr/local/opt/fzf

fzf.vim

fzf.vimのGithubを見ながらインストール。
上記サイトではvim-plugを使用していたけど、私はNeoBundleを使っているので下記のよう.vimrcに記述してインストール

NeoBundle 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
NeoBundle 'junegunn/fzf.vim'

設定

.vimrcに下記を追加しました。

" deniteと合わせて上部に表示
let g:fzf_layout = { 'up': '~40%' }

" <C-]>でタグ検索
nnoremap <silent> <C-]> :call fzf#vim#tags(expand('<cword>'))<CR>

" fzfからファイルにジャンプできるようにする
let g:fzf_buffers_jump = 1

良さげなのでしばらく使ってみます。

11
6
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
11
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?