Shougo / deol.nvim

Dark powered shell interface for Vim/NeoVim
MIT License
330 stars 16 forks source link

Add deol#open #1

Closed hrsh7th closed 7 years ago

hrsh7th commented 7 years ago

概要

想定する利用ケース

僕自身の init.vim から抜粋します。

function! MyDeolPop(cwd)
  if !exists('t:deol') || bufwinnr(t:deol.bufnr) == -1
    execute "topleft 15split"
  endif

  call deol#open(a:cwd, '')
endfunction

autocmd! FileType vimfiler call MyVimFilerSetting()
function! MyVimFilerSetting()
  nnoremap <buffer>H :<C-u>call MyDeolPop(b:vimfiler.current_dir)<CR>
endfunction
Shougo commented 7 years ago

やりたいことがおおむね分かったので、deol#start() の仕様を変更しました。

hrsh7th commented 7 years ago

使ってみましたが完璧でした!ありがとうございます。