A command to list buffers and prepare command line for next instruction

StackOverflow https://stackoverflow.com/questions/9116791

  •  21-04-2021
  •  | 
  •  

Pregunta

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.

¿Fue útil?

Solución

This mapping should meet your requirements.

nnoremap ,b :ls<cr>:
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top