summaryrefslogtreecommitdiff
path: root/runtime/doc/usr_05.txt
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2004-12-29 21:03:02 +0000
committerBram Moolenaar <Bram@vim.org>2004-12-29 21:03:02 +0000
commit8fc061c7f7acb3e80d5fd64d89ad71486d88f5e0 (patch)
treebe2f34900b08a4a8c1dcb404e59452c72ea77a30 /runtime/doc/usr_05.txt
parent81695250ef1bbc02016078044ac268129a33f333 (diff)
downloadvim-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.txt11
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.
>