diff --git a/Examples-(vim).md b/Examples-(vim).md index 4e6cf0b..b7801d5 100644 --- a/Examples-(vim).md +++ b/Examples-(vim).md @@ -326,23 +326,4 @@ command! -bang -nargs=* LoadTemplate call fzf#run({ \ 'down': 20, \ 'sink': function('read_template_into_buffer') \ }) -``` - -### Delete buffers from `:Buffers` - -This customization is an _attempt_, that sometimes doesn't work, to make the key `D` in `:Buffers`' interface, delete buffers. See the issues reported with this customization [here](https://github.com/junegunn/fzf.vim/pull/1044#issuecomment-651199164). An additional change this does to `:Buffers`' interface, is to make fzf reload the list of available buffers upon deletion, while allowing to delete multiple buffers as well. The requirements are: - -- https://github.com/mhinz/neovim-remote . -- fzf.vim with this PR merged: https://github.com/junegunn/fzf.vim/pull/1044 -- fzf 19.0 or later. - -```vim -command! -bar -bang -nargs=? -complete=buffer Buffers call - \ fzf#vim#buffers( - \ , - \ {'options': [ - \ '--bind=D:execute@nvr -c "bw $(echo {+1} | sed "s/\[\([0-9]\)\]/\1/g")"@+reload@nvr --remote-expr "join(map(fzf#vim#buflisted_sorted(), \"fzf#vim#format_buffer(v:val)\"), \"\n\")"@', - \ '--multi' - \ ]}, - \ 0) ``` \ No newline at end of file