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=
set list!
set pastetoggle=
I found an answer about how to toggle set number in vim, https://stackoverflow.com/a/762633/1086911
set number
So can try the same way by putting following line into your vimrc file
vimrc
map :set list! list?