Question

I want to reduce the amount of effort to list the buffers, select a buffer and either remove it or show it.

At present I need to do the following :ls > [Select the desired buffer] > :<Command>

I want to create this command and then map it ,b so I only need to press ,b and have the command line ready for me to use <buffer number>bw or <buffer number>b of which the number I can select from the already presented list.

Was it helpful?

Solution

This mapping should meet your requirements.

nnoremap ,b :ls<cr>:
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top