Skip to content

An extension to ctrlp.vim for deleting open buffers

Notifications You must be signed in to change notification settings

arnaudmm/ctrlp_bdelete.vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

ctrlp_bdelete.vim

The ctrlp.vim plugin for Vim does not provide a way to delete open buffers and there are no plans to add this functionality.

The author of ctrlp.vim, however, provided the basis of an extension to ctrlp.vim that users could drop into their vimrc to get this feature.

This plugin has taken that snippet and improved it to add support for marking multiple buffers, in addition to implementing bugfixes.

Installation

The easiest way to install ctrlp_bdelete.vim is using Vundle or Pathogen.

You'll also need to add the following line to your ~/.vimrc:

ctrlp_bdelete#init()

This simply adds a user setting to ctrlp itself.

Usage

Open ctrlp in buffer mode (c-p c-b), filter as needed, navigate to a buffer you wish to close and press c-@ (c-shift-2). The buffer will be deleted and will disappear from the list.

You may also mark multiple buffers with c-z and then close them all at once with a single press of c-@.

TODO

Support a custom mapping instead of c-@.

About

An extension to ctrlp.vim for deleting open buffers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vim Script 100.0%