VIM :set list! as a toggle in .vimrc

后端 未结 3 460
误落风尘
误落风尘 2021-02-08 05:57

Is there any way in my .vimrc file to use the command set list! with a keybind like F3 so it functions like this paste toggle set pastetoggle=

3条回答
  •  长发绾君心
    2021-02-08 06:37

    I found an answer about how to toggle set number in vim, https://stackoverflow.com/a/762633/1086911

    So can try the same way by putting following line into your vimrc file

    map  :set list! list? 
    

提交回复
热议问题