diff options
author | Renken <renken@shione.net> | 2022-08-16 16:41:05 +0200 |
---|---|---|
committer | Renken <renken@shione.net> | 2022-08-16 16:41:05 +0200 |
commit | e951a83f0b9757a50f4ad2420079fc22168ddc71 (patch) | |
tree | 94d09733f2245bfb9b530ce57a2b0f8346eccba6 /shino | |
parent | 2bddb61175c937c49fa7718d8d6fad5c512befeb (diff) | |
download | shione-e951a83f0b9757a50f4ad2420079fc22168ddc71.tar.gz shione-e951a83f0b9757a50f4ad2420079fc22168ddc71.zip |
pkgs: vim: add vim-bbye
Diffstat (limited to 'shino')
-rw-r--r-- | shino/packages/vim.scm | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/shino/packages/vim.scm b/shino/packages/vim.scm index 6070706..13bdf1e 100644 --- a/shino/packages/vim.scm +++ b/shino/packages/vim.scm @@ -204,3 +204,47 @@ buffer.") (synopsis "deoplete source for vim-lsp") (description "deoplete source for vim-lsp") (license license:expat)))) + +(define-public vim-bbye + (let ((commit "25ef93ac5a87526111f43e5110675032dbcacf56") + (revision "1")) + (package + (name "vim-bbye") + (version (git-version "1.0.1" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/moll/vim-bbye") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0dlifpbd05fcgndpkgb31ww8p90pwdbizmgkkq00qkmvzm1ik4y4")))) + (build-system copy-build-system) + (arguments + `(#:install-plan '(("plugin" "share/vim/vimfiles/")))) + (home-page "https://github.com/moll/vim-bbye") + (synopsis + "Delete buffers and close files in Vim without closing your windows or messing up your layout. Like Bclose.vim, but rewritten and well maintained.") + + (description + "Bbye allows you to do delete buffers (close files) without + closing your windows or messing up your layout. + +Vim by default closes all windows that have the buffer (file) open when you do +:bdelete. If you've just got your splits and columns perfectly tuned, having +them messed up equals a punch in the face and that's no way to tango. + +Bbye gives you :Bdelete and :Bwipeout commands that behave like well designed +citizens: +@itemize +@item Close and remove the buffer. +@item Show another file in that window. +@item Show an empty file if you've got no other files open. +@item Do not leave useless [no file] buffers if you decide to edit another file in that window. +@item Work even if a file's open in multiple windows. +@item Work a-okay with various buffer explorers and tabbars. +@end itemize +Regain your throne as king of buffers!") + ;; Bbye is released under a Lesser GNU Affero General Public License. + (license license:agpl3)))) |