Closed psmolak closed 6 years ago
Voilà: nmap <expr> <Space> '<Plug>BufTabLine.Go(' . v:count . ')'
Works like a charm. I allowed myself a small tweak:
nmap <expr> <tab> v:count > 0 ? '<Plug>BufTabLine.Go(' . v:count . ')' : ':bnext<cr>'
nmap <expr> <s-tab> v:count > 0 ? '<Plug>BufTabLine.Go(' . v:count . ')' : ':bprev<cr>'
Thank you!
Gladly 😊
Instead of these
I would like to have a simple maping for
<space>
which would take a count parameter. Then after invoking5<space>
I would expect vim to switch to 5'th buffer according to the ordinal numberingg:buftabline_numbers = 2
.I wouldn't bother, however I simply can't spend days reading Vim's documentation and figuring out its quirks just to do such simple thing :disappointed:
EDIT: Great plugin btw!