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

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

  •  21-04-2021
  •  | 
  •  

문제

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.

도움이 되었습니까?

해결책

This mapping should meet your requirements.

nnoremap ,b :ls<cr>:
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top