Dominique Pelle wrote: > > Matt Wozniski wrote: > >> Dominique Pelle wrote: >> >>> One annoying thing with... >>> >>> imap <Space> <Space><C-G>u >>> >>> ... is that it's not nice when trying to undo after pasting a large piece of >>> text from clipboard (set paste then middle click to paste), since you >>> can then only undo word by word which can be painful. It'd be nice to >>> be able to disable it when pasting text (how??). >> >> :set paste ;-) - :set paste disables mappings, abbreviations, >> auto-indenting, and many other things. If this map still fires, >> something is wrong. > > Doh, you're right of course. Yet I initially had > "imap <Space> <Space><C-G>u" in my ~/.vimrc > and I commented it out for some reasons. I can't > remember why now, but it was probably annoying > when pasting _without_ having done "set paste" > (i.e. with nopaste) prior to pasting text.
Probably - you usually wind up thinking "oops" and then hitting undo to fix the messup, which might get annoying with many undo points... though you could always just do :earlier 5s > So > %subst/paste/nopaste/g in my previous mail and it > should then make more sense :-) > > Cutting undo sequences seems more useful when > typing text than when pasting text with the mouse. Naturally - but, as I'm sure you know, with :set mouse=a (or, at least, :set mouse=i or some such) pasting with the mouse automatically behaves like :set paste is in effect, which is a much nicer option where it's available. ~Matt --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
