I’m looking for a way to bind a key combination (something like leader+p) to toggle :set paste on and off with the same key combo.
I know I can :set paste and :set paste! and can bind these to 2 different key combos but I’m looking to make a toggle.
There is a specific command to toggle paste mode :
to set it to F10 key for example.
Edit :
To use it with leader key, you would use