When possible I create 1 or 2 letter abbreviations for aliases and the like, e.g. x
for exit or p
for pwd at the command line.
When using vim and doing multiple tabs for different files (which I can switch between with gt
or gT
btw) I can edit an additional file with :tabe filename
which also creates a new tab.
Is there any shortcut or is there any way to create one (perhaps using the .vimrc file?) for something like :ta
or :tb
or :tt
or :tz
etc.
x
for exit is rather easy to accidentally type compared toZZ
(which itself was chosen because it is not easy to accidentally type). Also, training your fingers to conform to vim rather than the converse makes things much nicer when you aren't operating in the context of your .vimrc (which often happens more than you'd expect).