imochoa / dotfiles

collection of the setting that I like as well as some scripts to automate the post-install setup process
MIT License
0 stars 0 forks source link

New vim mapping #36

Open imochoa opened 4 years ago

imochoa commented 4 years ago

https://stackoverflow.com/questions/5559029/quickly-switching-buffers-in-vim-normal-mode

nnoremap bb :buffers:b it opens the :ls / :buffers command and pre-types the :b so that you just have to type the buffer number as you'll see a list with all the buffers and their numbers.

I also have

nnoremap :b#

imochoa commented 4 years ago

https://stackoverflow.com/questions/5559029/quickly-switching-buffers-in-vim-normal-mode

imochoa commented 4 years ago

" Close the current buffer and move to the previous one " This replicates the idea of closing a tab nmap bq :bp bd #

imochoa commented 4 years ago

https://joshldavis.com/2014/04/05/vim-tab-madness-buffers-vs-tabs/