VIM :set list! as a toggle in .vimrc

后端 未结 3 458
误落风尘
误落风尘 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:52

    You can put this in your .vimrc file:

    " F3: Toggle list (display unprintable characters).
    nnoremap  :set list!
    

提交回复
热议问题