Mercurial > vim
comparison runtime/doc/insert.txt @ 3456:4dde9b516e72
Updated runtime files.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Thu, 05 Apr 2012 17:33:26 +0200 |
parents | b7811ab264bf |
children | 3482d151136b |
comparison
equal
deleted
inserted
replaced
3455:20d62dbedc0d | 3456:4dde9b516e72 |
---|---|
1 *insert.txt* For Vim version 7.3. Last change: 2012 Jan 26 | 1 *insert.txt* For Vim version 7.3. Last change: 2012 Apr 05 |
2 | 2 |
3 | 3 |
4 VIM REFERENCE MANUAL by Bram Moolenaar | 4 VIM REFERENCE MANUAL by Bram Moolenaar |
5 | 5 |
6 | 6 |
396 | 396 |
397 :inoremap <C-H> <C-G>u<C-H> | 397 :inoremap <C-H> <C-G>u<C-H> |
398 | 398 |
399 This redefines the backspace key to start a new undo sequence. You can now | 399 This redefines the backspace key to start a new undo sequence. You can now |
400 undo the effect of the backspace key, without changing what you typed before | 400 undo the effect of the backspace key, without changing what you typed before |
401 that, with CTRL-O u. | 401 that, with CTRL-O u. Another example: > |
402 | |
403 :inoremap <CR> <C-]><C-G>u<CR> | |
404 | |
405 This breaks undo at each line break. It also expands abbreviations before | |
406 this. | |
402 | 407 |
403 Using CTRL-O splits undo: the text typed before and after it is undone | 408 Using CTRL-O splits undo: the text typed before and after it is undone |
404 separately. If you want to avoid this (e.g., in a mapping) you might be able | 409 separately. If you want to avoid this (e.g., in a mapping) you might be able |
405 to use CTRL-R = |i_CTRL-R|. E.g., to call a function: > | 410 to use CTRL-R = |i_CTRL-R|. E.g., to call a function: > |
406 :imap <F2> <C-R>=MyFunc()<CR> | 411 :imap <F2> <C-R>=MyFunc()<CR> |