I have my own pastetoggle map and it stop working when sing EasyClip.
I've grepped a little bit in the code and I've found the EasyClipUseGlobalPasteToggle variable with a very nice info:
" Always toggle to 'paste mode' before pasting in insert mode
" We have two methods of doing this here, both with different advantages/disadvantages
" The first modifies the global value for pastetoggle, which may be undesirable if you want to bind
" pastetoggle to something yourself
" The second avoids the need to set the global pastetoggle but leaves insert mode briefly, which can
" cause the indentation level to change sometimes (for eg. when hitting 'o' then immediately doing CTRL+V to paste something)
if get(g:, 'EasyClipUseGlobalPasteToggle', 1)
set pastetoggle=<plug>PasteToggle
imap <expr> <plug>EasyClipInsertModePaste '<plug>PasteToggle<C-r>' . EasyClip#GetDefaultReg() . '<plug>PasteToggle'
else
inoremap <expr> <plug>EasyClipInsertModePaste '<c-o>:setl paste<cr><c-r>' . EasyClip#GetDefaultReg() . '<c-o>:setl nopaste<cr>'
endif
I've let g:EasyClipUseGlobalPasteToggle = 0 and everything worked again like a chram.
So, may be we should move/copy some of he above info in the main documentation to avoid more greppings? ;-)
Hi!
I have my own pastetoggle map and it stop working when sing EasyClip. I've grepped a little bit in the code and I've found the
EasyClipUseGlobalPasteToggle
variable with a very nice info:I've
let g:EasyClipUseGlobalPasteToggle = 0
and everything worked again like a chram. So, may be we should move/copy some of he above info in the main documentation to avoid more greppings? ;-)Thanks for this really helpful plugin!
Albert