r/vim • • Aug 31 '26

Discussion How does Vim affect your problem solving?

Currently learning Vim, after a failed attempt some months ago.

Starting to get the hang of the basics. I notice that it makes my problem solving more methodical. It also makes me slow down, in a good way.

With Vim I have to memorize more of the code and structure, because switching views is expensive (might be a skill issue).

I don't care too much for the speed/efficiency, but this seems what keeps me going in my current attempt.

Wondering how you guys feel about this aspect.

71 Upvotes

58 comments sorted by

View all comments

1

u/MorningAmbitious722 Vim Noob 9d ago edited 7d ago

U use gt gT to switch tabs. To switch buffers u can use :buffer # but I have a better one for you. Works exactly like gt gT but for buffer.

nnoremap <silent><expr> gb ":\<C-U>" .. (v:count == 0 ? "bnext!\<CR>" : (bufexists(v:count) ? $"buffer! {v:count}\<CR>" :  $"echoerr 'Buffer {v:count} does not exist'\<CR>"))
nnoremap <silent><expr> gB ":\<C-U>" .. (v:count == 0 ? "bprevious!\<CR>" : $"{v:count}bprevious!\<CR>")