Implement <F3> as paste toggle manually since neovim deprecated pastetoggle

This commit is contained in:
Kevin MacMartin 2023-04-21 14:02:29 -04:00
parent beaa8f1ed1
commit 9cfe9ff7c3

View file

@ -465,7 +465,7 @@
inoremap <silent><expr> <F2> '<C-O>:set spell!<CR>' inoremap <silent><expr> <F2> '<C-O>:set spell!<CR>'
"toggle external-paste mode "toggle external-paste mode
set pastetoggle=<F3> nnoremap <silent><expr> <F3> ':if &paste<Bar>set paste!<Bar>else<Bar>set paste<Bar>endif<CR>'
"toggle syntax checking "toggle syntax checking
function! ToggleAle() function! ToggleAle()