Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I navigate buffers in astrovim?

Tags:

neovim

I switch between tabs with <leader>bb and typing in the letter that appears on the tab. Is there a faster way? For example, it will switch to a tab to the right / left.

like image 945
Kiritushka Avatar asked Nov 18 '25 11:11

Kiritushka


2 Answers

Yes, faster than your example and default Astronvim way is
[b - go to previous buffer
]b - go to next buffer.

like image 78
samuelnihoul Avatar answered Nov 21 '25 08:11

samuelnihoul


Set keyboard shortcuts to Tab and Shift+Tab

vim.api.nvim_set_keymap('n', '<S-Tab>', ':bprev<CR>', { noremap = true })
vim.api.nvim_set_keymap('n', '<Tab>', ':bnext<CR>', { noremap = true })
like image 40
Kiritushka Avatar answered Nov 21 '25 09:11

Kiritushka



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!