From a3829ba6549f1c3e33fa4b7fea7b503245c42c82 Mon Sep 17 00:00:00 2001 From: Iain Patterson Date: Tue, 8 Aug 2006 15:36:42 +0000 Subject: [PATCH] Added visual remap commands to find selection in visual mode. git-svn-id: https://svn.cambridge.iain.cx/profile/trunk@30 6be0d1a5-5cfe-0310-89b6-964be062b18b --- .vimrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.vimrc b/.vimrc index 4c10a31..5c3d17e 100755 --- a/.vimrc +++ b/.vimrc @@ -86,6 +86,10 @@ map = yyp:s/./=/g:let @/='': command! W :w se tags=~/.ctags +" Make * and # work the way you expect in visual mode. +vnoremap * y/\V=substitute(escape(@@,"/\\"),"\n","\\\\n","ge") +vnoremap # y?\V=substitute(escape(@@,"?\\"),"\n","\\\\n","ge") + fun! Invert_Case() let &ic = ! &ic endfun -- 2.20.1