LoginSignup
3
3

More than 5 years have passed since last update.

カーソル上の単語でvim-refを検索する

Posted at
.vim/after/ftplugin/php.vim
nmap <F4> :execute 'Ref phpmanual ' . expand('<cword>') <CR>
.vim/ftplugin/ruby.vim
nnoremap <F4> :execute 'Ref refe ' . expand('<cword>') <CR>

expand('<cword>')でカーソル上の単語が取れる。この関数をマッピングで使ううまいやり方わからなかったけど、これでとりあえずいけた。

3
3
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
3
3