4 ms·
"You can then flick back and forth between the tabs using :tabn and :tabp." Also gt and gT, but I still like to map these to single-key shortcuts. map Y g
by mmahemoff 14y ago
"You can then flick back and forth between the tabs using :tabn and :tabp."
Also gt and gT, but I still like to map these to single-key shortcuts.
map Y gt
map T gT
- tyrmored 14y agoYes, gt and gT are the way to do this. Admittedly I wouldn't personally recommend those mappings, because both already correspond to commands I use quite frequently. By default Y is synonym for yy, to yank a whole line, and T<char> moves back to the nearest instance of <char> on the current line. The first one I think people could live without, but the latter is kind of important for good vi.
- unhappyhippie 14y agoIt just might be me, but I always prefer multiple keys to pressing a dead key . After some time, my short finger cannot take it. For eg, I always use yy instead of Y.
- brianto2010 14y agoSame here, but mine is nnoremap <Tab> gt nnoremap <S-Tab> gT Normal mode tab switches through tabs. One (and two) key goodness.