A command to list buffers and prepare command line for next instruction
-
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>:
لا تنتمي إلى StackOverflow