unite で複数のファイルを新しいタブにまとめて縦分割で開く

個人的にそういうことをよくやるので、action を定義した。こういうのが簡単にできて unite は素晴らしい。

let s:unite_action = {
\   'is_selectable': 1,
\ }

function! s:unite_action.func(candidates)  " {{{
  tabnew `=a:candidates[0].action__path`
  for c in a:candidates[1 :]
    vsplit `=c.action__path`
  endfor
endfunction  " }}}

call unite#custom_action('openable', 'tabvsplit', s:unite_action)
unlet! s:unite_action

この手のは応用が効きやすいと思うので、よくやる操作があれば登録しておくといいと思う。