Closed hrsh7th closed 7 years ago
deol#start
input()
deol#open
僕自身の 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
やりたいことがおおむね分かったので、deol#start() の仕様を変更しました。
使ってみましたが完璧でした!ありがとうございます。
概要
deol#start
を実施すると必ずinput()
を要求する為、deol#open
を新設しました。input()
で手に入れた cwd を指定して内部的にdeol#open
を呼び出すだけになっています。deol#open
は vimfiler のカレントディレクトリに追従するためなどに利用する想定です。想定する利用ケース
僕自身の init.vim から抜粋します。