On 13/02/09 13:55, Andreas Bernauer wrote: > Tony Mechelynck wrote: >> In fact, the following >> >> :inoremap<Space> <Space><Left><Right> >> :inoremap<Tab> <Tab><Left><Right> >> :inoremap<CR> <CR><Up><Down> >> >> create an undo point after each WORD. > > Alternatively to<Left><Right>, you could use<C-G>u, which breaks an undo > sequence and does not move the pointer. >
True; but (a) these <Left><Right> and <Up><Down> mappings were invented some time ago, when the latest Vim version (which was some Vim 6.x) didn't yet know about Ctrl-G u, and (b) they illustrate the fact that "everything you do from i or a to Esc" can be more than one undo block if you move the cursor in the meantime, which is what I mentioned just above those mappings in the same post. Best regards, Tony. -- "But what we need to know is, do people want nasally-insertable computers?" --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
