2
0

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.

denite.nvimのvimfiler actionを作った

Posted at

以下の設定

vimrc
call denite#custom#action('directory', 'vimfiler', 'my#denite#action#vimfiler')
~/.vim/autoload/my/denite/action.vim
function! my#denite#action#vimfiler(context)
  execute 'VimFiler ' . a:context.targets[0].action__path
endfunction

をするとkindがdirectoryの場合に、vimfiler actionが追加される。デフォルトアクションをvimfilerにしたい時は

:Denite directory_rec -default-action=vimfiler

で実行するなど。

作るにあたって、contextの中身を知りたかったのでdebug actionも作った。

call denite#custom#action('directory', 'debug', {context -> execute('PP! context', '')})

thinca/vim-prettyprint: Prettyprint vim variables.が必要。

2
0
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
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?