What is the in a .vimrc file?

后端 未结 5 969
情深已故
情深已故 2020-11-28 17:04

I see in many .vimrc files, and I am wondering what does it mean?

What is it used for?

Just a general overview of

5条回答
  •  无人及你
    2020-11-28 17:26

    The key is mapped to \ by default. So if you have a map of t, you can execute it by default with \+t. For more detail or re-assigning it using the mapleader variable, see

    :help leader

    To define a mapping which uses the "mapleader" variable, the special string
    "" can be used.  It is replaced with the string value of "mapleader".
    If "mapleader" is not set or empty, a backslash is used instead.  
    Example:
        :map A  oanother line 
    Works like:
        :map \A  oanother line 
    But after:
        :let mapleader = ","
    It works like:
        :map ,A  oanother line 
    
    Note that the value of "mapleader" is used at the moment the mapping is
    defined.  Changing "mapleader" after that has no effect for already defined
    mappings.
    
    
    

提交回复
热议问题