I don't want to always type the word. it's annoying.
|
|
Another approach is a user-defined command. Unfortunately, those can't begin with a lower-case letter, so your next best option is
|
|||
|
|
From https://www.linux.com/learn/tutorials/442422-vim-tips-using-tabs Use |
|||||||
|
|
Notwithstanding the other suggestions, here is a more exact answer to your question: I don't think it's possible completely equivalently, but this set of mappings would get you pretty close:
or equivalently, but better:
|
||||
|
|
|
Pick a key you do not use under vim, like say ), and and remap that key to the tabnew command:
To enter the last CR (^M), type ControlV then Enter |
|||||||||||
|
|
A builtin shorter alias for |
|||
|
|