diff options
author | Bram Moolenaar <Bram@vim.org> | 2004-12-29 21:03:02 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2004-12-29 21:03:02 +0000 |
commit | 8fc061c7f7acb3e80d5fd64d89ad71486d88f5e0 (patch) | |
tree | be2f34900b08a4a8c1dcb404e59452c72ea77a30 /runtime/doc/usr_05.txt | |
parent | 81695250ef1bbc02016078044ac268129a33f333 (diff) | |
download | vim-git-8fc061c7f7acb3e80d5fd64d89ad71486d88f5e0.tar.gz |
updated for version 7.0026v7.0026
Diffstat (limited to 'runtime/doc/usr_05.txt')
-rw-r--r-- | runtime/doc/usr_05.txt | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/runtime/doc/usr_05.txt b/runtime/doc/usr_05.txt index 42346f22f..2aa2b92b8 100644 --- a/runtime/doc/usr_05.txt +++ b/runtime/doc/usr_05.txt @@ -1,4 +1,4 @@ -*usr_05.txt* For Vim version 7.0aa. Last change: 2004 Aug 27 +*usr_05.txt* For Vim version 7.0aa. Last change: 2004 Dec 29 VIM USER MANUAL - by Bram Moolenaar @@ -150,12 +150,11 @@ it worked before Vim 5.0. Otherwise the "Q" command starts Ex mode, but you will not need it. > - vnoremap p <Esc>:let current_reg = @"<CR>gvs<C-R>=current_reg<CR><Esc> + vnoremap _g y:exe "grep /" . escape(@", '\\/') . "/ *.c *.h"<CR> -This is a complicated mapping. It will not be explained how it works here. -What it does is to make "p" in Visual mode overwrite the selected text with -the previously yanked text. You can see that mappings can be used to do quite -complicated things. Still, it is just a sequence of commands that are +This mapping yanks the visually selected text and searches for it in C files. +This is a complicated mapping. You can see that mappings can be used to do +quite complicated things. Still, it is just a sequence of commands that are executed like you typed them. > |