Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow buffer switch to last #52

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

allow buffer switch to last #52

wants to merge 5 commits into from

Conversation

huzilin
Copy link

@huzilin huzilin commented Oct 15, 2020

When using with ctag, only using bw and bn is not enough

@hewcaw
Copy link
Collaborator

hewcaw commented Oct 22, 2020

Hi bro! I feel like we have the same idea, but it's kind of fuzzy can you explain it more clearly?

Btw, I'm porting this plugin to Lua, so if you have some Lua knowledge, maybe can you join me later after I finish rewriting the plugin? I have some ideas but I don't want to implement them using VimL.

@huzilin
Copy link
Author

huzilin commented Oct 22, 2020

Here is my config.

nmap <leader>1 <Plug>BuffetSwitch(1)
nmap <leader>2 <Plug>BuffetSwitch(2)
nmap <leader>3 <Plug>BuffetSwitch(3)
nmap <leader>4 <Plug>BuffetSwitch(4)
nmap <leader>5 <Plug>BuffetSwitch(5)
nmap <leader>6 <Plug>BuffetSwitch(6)
nmap <leader>7 <Plug>BuffetSwitch(7)
nmap <leader>8 <Plug>BuffetSwitch(8)
nmap <leader>9 <Plug>BuffetSwitch(9)
nmap <leader>0 <Plug>BuffetSwitch(0)
nmap <leader>] <Plug>BuffetNext
nmap <leader>[ <Plug>BuffetPrev

When I call BuffetSwitch(0), let the buffer switch to the last one.

The BuffetNext let buffer switch to next index in buffer_ids.

Sometime i use :bp or :bn not goto correct index of the buffer. So I add BuffetNext And BuffetPrev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants