Que signifie l'astérisque dans les mappages vim?


9

Par exemple, le clip facile a ce mappage lorsque vous exécutez smap k:

s  k     * <C-o>"_ck

L'astérisque et <C-o>sont mis en évidence.


Vous voudrez peut-être lire ma réponse qui explique les :mapcommandes et leur sortie.
statox

Réponses:


9

De :h map-listing:

When listing mappings the characters in the first two columns are:

      CHAR      MODE    
     <Space>    Normal, Visual, Select and Operator-pending
        n       Normal
        v       Visual and Select
        s       Select
        x       Visual
        o       Operator-pending
        !       Insert and Command-line
        i       Insert
        l       ":lmap" mappings for Insert, Command-line and Lang-Arg
        c       Command-line

Just before the {rhs} a special character can appear:
        *       indicates that it is not remappable
        &       indicates that only script-local mappings are remappable
        @       indicates a buffer-local mapping

Ils ont donc été créés à l'aide de ?noremapcommandes.

En utilisant notre site, vous reconnaissez avoir lu et compris notre politique liée aux cookies et notre politique de confidentialité.
Licensed under cc by-sa 3.0 with attribution required.