Is there a practical difference between using
:e
and
:edit
Except for readability, where it make sense in a mapping to use :edit, because it's more explicit.
Is there a difference between them?
Note: This apply as well to all other commands.
Is there a practical difference between using
:e
and
:edit
Except for readability, where it make sense in a mapping to use :edit, because it's more explicit.
Is there a difference between them?
Note: This apply as well to all other commands.
There is no actual difference but in :h usr_20.txt, you can read:
It is recommended that in Vim scripts you write the full command name. That makes it easier to read back when you make later changes. Except for some often used commands like
:w(:write) and:r(:read).A particularly confusing one is
:end, which could stand for:endif,:endwhileor:endfunction. Therefore, always use the full name.
So I would recommend to follow the doc and use the long name.
And another paragraph interesting about the short names:
How short can a command get? There are 26 letters, and many more commands. For example,
:setalso starts with:s, but:sdoesn't start a:setcommand. Instead:setcan be abbreviated to:se.When the shorter form of a command could be used for two commands, it stands for only one of them. There is no logic behind which one, you have to learn them. In the help files the shortest form that works is mentioned.
setl nobl bt=nofile noswf,setl ma ff=unix noro,setl ro noma nomod. Can you tell quickly what they do? Look at thenetrwsources for more inspiration. :) – Sato Katsura Jun 27 '16 at 19:58