asheq / close-buffers.vim Goto Github PK
View Code? Open in Web Editor NEW:book: Quickly close (bdelete) several buffers at once 馃摃
:book: Quickly close (bdelete) several buffers at once 馃摃
Error detected while processing function 62_bclose[26]..62_close_buffers:
line 2:
E89: term://~/Projects/github.com/kyoh86/dotfiles//33942:/bin/zsh will be killed (add ! to override)
I want an option to ignore terminal-buffers.
Hello,
When I call ":Bdelete hidden
" everything works fine.
When I call ":Bdelete hidden
" (notice the space character at the end of the command), an error gets thrown.
hi I love this plug!
bug?: pressing ESC
in menu
closes popup but still deletes buffers.
but could you make it so, that pressing ESC
in :Bdelete menu also cancels it? I sometime hit Q without meaning to and then hitting ESC
is ingrained so much in my muscle-memory, I just can't stop it. Also I think it's an expected behaviour.
I have the following remappings in my init.vim:
nnoremap ; :
nnoremap : ;
vnoremap ; :
vnoremap : ;
In:
You are calling :
but it's interpreting as ;
, so the command doesn't work; checking :help feedkeys()
, we can pass a second argument to feedkeys
with a 'n'
and the keys will not use remaps, this works:
call feedkeys(':' . s:append_bang(a:command, a:bang) . ' ', 'n')
But I don't know if this change could have undesired effects, what do you think?
Thanks
Would it be possible to implement an option to only remove (unseen) terminal buffers?
Add option to allow closing buffers without closing any windows they are displayed in, like vim-bbye
Hello,
Version: VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Oct 13 2020 15:49:09)
.vimrc:
" #############################################################################
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'digitaltoad/vim-pug'
Plugin 'othree/html5.vim'
Plugin 'JamshedVesuna/vim-markdown-preview'
Plugin 'preservim/nerdtree'
Plugin 'groenewege/vim-less'
Plugin 'Asheq/close-buffers.vim'
call vundle#end() " required
filetype plugin indent on " required
" To ignore plugin indent changes, instead use:
"filetype plugin on
"
" Brief help
" :PluginList - lists configured plugins
" :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate
" :PluginSearch foo - searches for foo; append `!` to refresh local cache
" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal
"
" see :h vundle for more details or wiki for FAQ
" Put your non-Plugin stuff after this line
" #############################################################################
" SINTAXIS MONOKAY
syntax on
colorscheme monokai
" 4 ESPACIOS PARA TABULAR
set tabstop=4
" AL INSERTAR >, USAR 4 ESPACIOS
set shiftwidth=4
" INTERCAMBIAR TABULADO POR ESPACIOS
set expandtab
" AUTO IDENTACI脫N
set autoindent
" MOSTRAR NROS DE L脥NEA
set number
" MOSTRAR COMO T脥TULO DE VENTANA, EL NOMBRE DE ARCHIVO ABIERTO EN EL BUFFER
" ACTUAL
set titlestring=%t
" MARKDOWN PREVIEW
let vim_markdown_preview_github=1
" AVOID WRAPPING END OF LINE
set nowrap
" PHPFOLDING
map <F5> <Esc>:EnableFastPHPFolds<Cr>
map <F6> <Esc>:EnablePHPFolds<Cr>
map <F7> <Esc>:DisablePHPFolds<Cr>
" NERDTree: OPEN TREE WITH KEY
nnoremap <F8> <Esc>:NERDTree<CR>
" Vim-Less
nnoremap <Leader>m :w <BAR> !lessc % > %:p:r.css<CR><space>
nnoremap <Leader>dm :w <BAR> !lessc % > %:p:r.css
When I use :Bdelete hidden
I got this error:
Se ha detectado un error al procesar function <SNR>97_bclose:
l铆nea 1
E117: Funci贸n desconocida: trim
E15: La expresi贸n no es v谩lida: trim(a:option)
l铆nea 2
E121: Variable sin definir: l:option
E116: Argumentos inv谩lidos para la funci贸n: index(s:options, l:option) < 0
E15: La expresi贸n no es v谩lida: index(s:options, l:option) < 0
l铆nea 6
E121: Variable sin definir: l:option
E15: La expresi贸n no es v谩lida: (l:option == 'menu')
After enter
key pressed nothing happens.
If I'll found a solution, I will post again.
Regards
STEPS
Follow the Pathogen instructions in the README:
cd ~/.vim/bundle && git clone git://github.com/asheq/close-buffers.git
RESULT
Cloning into 'close-buffers'...
fatal: remote error:
Repository not found.
I'll fork and submit a PR...
I updated to the latest version via vim-plug and am now seeing this error when executing :Bdelete hidden
My environment is as follows:
lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 9.13 (stretch)
Release: 9.13
Codename: stretch
vim --version
VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Jun 21 2019 04:10:35)
Included patches: 1-197, 322, 377-378, 550, 649, 651, 703, 706-707
Extra patches: 8.1.1401, 8.1.1382, 8.1.1368, 8.1.1367, 8.1.1366, 8.1.1365, 8.1.1046, 8.1.0613, 8.1.0547, 8.1.0546, 8.1.0544, 8.1.0540, 8.1.0539, 8.1.0538, 8.1.0506, 8.1.0208, 8.1.0206, 8.1.0205, 8.1.0189, 8.1.0177, 8.1.0067, 8.1.0066
Modified by [email protected]
Compiled by [email protected]
Huge version without GUI. Features included (+) or not (-):
+acl +file_in_path +mouse_sgr +tag_old_static
+arabic +find_in_path -mouse_sysmouse -tag_any_white
+autocmd +float +mouse_urxvt -tcl
-balloon_eval +folding +mouse_xterm +termguicolors
-browse -footer +multi_byte +terminfo
++builtin_terms +fork() +multi_lang +termresponse
+byte_offset +gettext -mzscheme +textobjects
+channel -hangul_input +netbeans_intg +timers
+cindent +iconv +num64 +title
-clientserver +insert_expand +packages -toolbar
-clipboard +job +path_extra +user_commands
+cmdline_compl +jumplist -perl +vertsplit
+cmdline_hist +keymap +persistent_undo +virtualedit
+cmdline_info +lambda +postscript +visual
+comments +langmap +printer +visualextra
+conceal +libcall +profile +viminfo
+cryptv +linebreak -python +vreplace
+cscope +lispindent -python3 +wildignore
+cursorbind +listcmds +quickfix +wildmenu
+cursorshape +localmap +reltime +windows
+dialog_con -lua +rightleft +writebackup
+diff +menu -ruby -X11
+digraphs +mksession +scrollbind -xfontset
-dnd +modify_fname +signs -xim
-ebcdic +mouse +smartindent -xpm
+emacs_tags -mouseshape +startuptime -xsmp
+eval +mouse_dec +statusline -xterm_clipboard
+ex_extra +mouse_gpm -sun_workshop -xterm_save
+extra_search -mouse_jsbterm +syntax
+farsi +mouse_netterm +tag_binary
system vimrc file: "$VIM/vimrc"
user vimrc file: "$HOME/.vimrc"
2nd user vimrc file: "~/.vim/vimrc"
user exrc file: "$HOME/.exrc"
defaults file: "$VIMRUNTIME/defaults.vim"
fall-back for $VIM: "/usr/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -Wdate-time -g -O2 -fdebug-prefix-map=/build/vim-xBMBkh/vim-8.0.0197=. -fstack-protector-strong -Wformat -Werror=format-security -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: gcc -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -o vim -lm -ltinfo -lnsl -lselinux -lacl -lattr -lgpm -ldl
Problem:
Hidden buffers are still having tabs after deleting all hidden buffers (BDelete hidden). Once triggered the refresh of bufferline(e.g. mouse clicking the bufferline tab, switching window), the deleted hidden buffer tabs will disappear.
The minimal configuration is as follows:
Neovim
NVIM v0.8.3
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by [email protected]
Features: +acl +iconv +tui
See ":help feature-compile"
system vimrc file: "$VIM/sysinit.vim"
fall-back for $VIM: "/opt/homebrew/Cellar/neovim/0.8.3/share/nvim"
Run :checkhealth for more info
Bufferline: v3.5.0
close-buffers.nvim: master
After the recent change in command namings, I get a conflict with vim-bbye.
Error detected while processing /home/user/.config/nvim/plugged/close-buffers.vim/plugin/close-buffers.vim:
line 33:
close-buffers.vim: You already have a ":Bdelete" command defined
line 39:
close-buffers.vim: You already have a ":Bwipeout" command defined
If I see :buffers!
there is a lot of buffers there that can't be removed with close-buffers.vim
.
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
馃枛 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 馃搳馃搱馃帀
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google 鉂わ笍 Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.