how can I get all the abbreviations of vim's options?

后端 未结 2 1226
难免孤独
难免孤独 2021-02-07 12:41

Such as I can use

:set nu

as

:set number

Where can I get the whole list of this kind of mapping (number -> nu

2条回答
  •  日久生厌
    2021-02-07 13:39

    In the help it shows you the minimum amount required. But in general, you only need enough to be unique. So :set numb is fine too.

    See in the help how the [mber] is in square brackets? That means it's not necessary.

    :[range]nu[mber] [count] [flags]
                Same as :print, but precede each line with its line
                number.  (See also 'highlight' and 'numberwidth'
                option).
                See |ex-flags| for [flags].
    

    Note: vim thinks of 'abbreviations' as something different - see :help abbreviations which describes how you can save time entering words.

提交回复
热议问题