diff --git a/README.md b/README.md index 03096f6..4b9ae58 100644 --- a/README.md +++ b/README.md @@ -10,9 +10,9 @@ Install it with your favorite plugin manager. Example with vim-plug: Plug 'ptzz/lf.vim' -If you use neovim, you have to add the dependency to the plugin bclose.vim: +If you use neovim, you have to add the dependency to the plugin vim-bbye: - Plug 'rbgrouleff/bclose.vim' + Plug 'moll/vim-bbye' How to use it ------------- @@ -63,7 +63,7 @@ let g:NERDTreeHijackNetrw = 0 // add this line if you use NERDTree let g:lf_replace_netrw = 1 // open lf when vim open a directory ``` -In order for this to work you need to install the bclose.vim plugin (see above). +In order for this to work you need to install the vim-bbye plugin (see above). ### Setting a custom lf command By default lf is opened with the command `lf` but you can set an other custom command by setting the `g:lf_command_override` variable in your .(n)vimrc. diff --git a/plugin/lf.vim b/plugin/lf.vim index 1b322cb..c22d9c2 100644 --- a/plugin/lf.vim +++ b/plugin/lf.vim @@ -44,10 +44,10 @@ function! OpenLfIn(path, edit_cmd) let lfCallback = { 'name': 'lf', 'edit_cmd': a:edit_cmd } function! lfCallback.on_exit(job_id, code, event) if a:code == 0 - if exists(":Bclose") - silent! Bclose! + if exists(":Bdelete") + silent! Bdelete! else - echoerr "Failed to close buffer, make sure the `rbgrouleff/bclose.vim` plugin is installed" + echoerr "Failed to close buffer, make sure the `moll/vim-bbye` plugin is installed" endif endif try @@ -115,7 +115,7 @@ function! OpenLfOnVimLoadDir(argv_path) let path = expand(a:argv_path) " Delete empty buffer created by vim - Bclose! + Bdelete! " Open Lf call OpenLfIn(path, s:default_edit_cmd)