Testing my new mapping of the month:
nnoremap <expr> <tab> tabpagenr('$') ==? 1 ? "<C-^>" : ":tabnext<cr>"
Basically, use TAB to switch to the alternate buffer when there’s no other tab, otherwise go to next tab (and cycle). #vim
#vim