1
0
mirror of https://github.com/xlogerais/config-vim synced 2024-11-10 00:21:41 +01:00

Added configuration for paste mode

This commit is contained in:
Xavier Logerais 2015-03-01 22:33:16 +01:00
parent 2418b5246a
commit 7c5d182278

11
vimrc
View File

@ -143,3 +143,14 @@ else
set termencoding=utf-8 set termencoding=utf-8
set t_Co=16 set t_Co=16
endif endif
" ------[ Paste ] ----------------------------------------------
function! PasteToggle()
set invpaste
set paste?
endfunction
map <F2> :call PasteToggle()<CR>
imap <F2> <c-o>:call PasteToggle()<CR>
set pastetoggle=<F2>