sponsor Vim development Vim logo Vim Book Ad

smartq : Master key for quitting vim buffers

 script karma  Rating 0/0, Downloaded by 173  Comments, bugs, improvements  Vim wiki

created by
Mark Lucernas
script type
Sensibly close buffers with respect to tabs and window splits, and other types of buffer.

install details
Plug and play. Extract then place files in ~/.vim

or follow the instructions in the official repo: https://github.com/marklcrns/vim-smartq#installation using package managers

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
vim-smartq-1.2.tar.gz 1.2 2021-07-08 7.0 Mark Lucernas Completely preserve splits. Add buftype support.

- Splits are preserved to the final non-empty buffer.
- Add options to exclude and include buftype
- All splits collapse on the last empty modifiable buffer, else quit vim regardless of other non-modifiable splits
- Auto wipe empty buffers when deleting/wiping a buffer
- Bug fixes
vim-smartq.tar.gz 1.0 2021-06-14 7.0 Mark Lucernas New Features

- Add bang (!) support for SmartQ and SmartQWipeEmpty.
  - SmartQ! and SmartQWipeEmpty! force delete/wipe/close buffers.
- SmartQ(!) now accepts one optional args to manually delete buffer
  - Accepts both bufname or bufnr. Also supports tab completion.
  - e.q. SmartQ autoload/smartq.vim
  - e.q. SmartQ! 1
- Add s:new_tmp_buf() for creating temporary buffer that self-destructs.
- Create LICENCE


- Fix non-empty unspecified readonly buffer from using :q to :bd


- Remove g:smartq_bd_filetypes and make it default
- Update default global settings
- Use default let variable inside functions instead of let s:variable
- Snakecase script functions.
- Update README
vim-smartq.tar.gz 0.2 2021-06-14 7.0 Mark Lucernas feat(smartq): First major update


- Modularize script
  - Moved all functions in autoload dir
- Add default mappings
- Add SmartQCloseSplits
- Add SmartQWipeEmpty
  - Remove auto wipe empty buffers feature


- Fix filetype detection
- Add option to delete buffer using :bw with g:smartq_bw_filetypes
- Improve performance


- Remove redundant comments
- Update README
smartq.vim 0.1 2021-06-13 7.0 Mark Lucernas Initial upload
ip used for rating:

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.