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
,
:endwhile
or :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, :set
also starts with :s
, but :s
doesn't start a :set
command. Instead :set
can 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 thenetrw
sources for more inspiration. :)