Saving output of :map in vim

后端 未结 4 2013
陌清茗
陌清茗 2021-01-04 07:31

Q1: Is there a way of saving the output of the command

:map

to a file?

Q2: In a related question, I have the following map in my v

4条回答
  •  囚心锁ツ
    2021-01-04 07:55

    I don't know a way to save the individual :map, but :mksession filename will save a file with the current state of the editor in it, which will include all the map definitions.

提交回复
热议问题