From b8ae592ddfe32b79e39c7dbfa55021e61ac8d276 Mon Sep 17 00:00:00 2001 From: Hugues Hiegel Date: Thu, 18 Dec 2014 15:53:30 +0100 Subject: [map] use norecursive mappings --- vimrc | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/vimrc b/vimrc index fb166d0..db9b36a 100644 --- a/vimrc +++ b/vimrc @@ -253,17 +253,17 @@ set tabstop=4 set shiftwidth=4 set noexpandtab -map U yyp:s/[^ ]/-/g:noh -map Y yyp:s/[^ ]/=/g:noh +noremap U yyp:s/[^ ]/-/g:noh +noremap Y yyp:s/[^ ]/=/g:noh " Reformatting is done using 'gq' -map Q :s/^/> / -map q :s/^[ ]*>[ ]*// +noremap Q :s/^/> / +noremap q :s/^[ ]*>[ ]*// -map u :noh +noremap u :noh runtime! ftplugin/man.vim -map K :Man =expand("") +noremap K :Man =expand("") " Function @@ -324,7 +324,7 @@ function! GitBlameCurrentLine() echohl WarningMsg | echo line | echohl None endfunction command! GitBlameCurrentLine :call GitBlameCurrentLine() -map b :GitBlameCurrentLine +noremap b :GitBlameCurrentLine augroup MailEditor au! @@ -351,7 +351,7 @@ augroup MailEditor autocmd FileType mail :normal ,n augroup END -map zc z=1 +noremap zc z=1 function! SetLocalTabs(tabsize) execute 'setlocal tabstop=' . a:tabsize @@ -407,4 +407,3 @@ function! VimFootnotes() endif startinsert! endfunction - -- cgit v1.2.3