summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugues Hiegel <hugues.hiegel@qosmos.com>2014-12-18 15:53:30 +0100
committerHugues Hiegel <hugues.hiegel@qosmos.com>2014-12-18 15:59:16 +0100
commitb8ae592ddfe32b79e39c7dbfa55021e61ac8d276 (patch)
treedc00e42fb47b3dc4af1f998319f0ba33f24f9a6e
parent755574d1e37e40d2c74d4fd3e5d0cb07d98bf4db (diff)
[map] use norecursive mappings
-rw-r--r--vimrc17
1 files 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<CR>:noh<CR>
-map Y yyp:s/[^ ]/=/g<CR>:noh<CR>
+noremap U yyp:s/[^ ]/-/g<CR>:noh<CR>
+noremap Y yyp:s/[^ ]/=/g<CR>:noh<CR>
" Reformatting is done using 'gq<motion>'
-map <ESC>Q :s/^/> /<CR>
-map <ESC>q :s/^[ ]*>[ ]*//<CR>
+noremap <ESC>Q :s/^/> /<CR>
+noremap <ESC>q :s/^[ ]*>[ ]*//<CR>
-map <silent> <ESC>u :noh<CR>
+noremap <silent> <ESC>u :noh<CR>
runtime! ftplugin/man.vim
-map K :Man <C-R>=expand("<cword>")<CR><CR>
+noremap K :Man <C-R>=expand("<cword>")<CR><CR>
" Function
@@ -324,7 +324,7 @@ function! GitBlameCurrentLine()
echohl WarningMsg | echo line | echohl None
endfunction
command! GitBlameCurrentLine :call GitBlameCurrentLine()
-map <ESC>b :GitBlameCurrentLine<CR>
+noremap <ESC>b :GitBlameCurrentLine<CR>
augroup MailEditor
au!
@@ -351,7 +351,7 @@ augroup MailEditor
autocmd FileType mail :normal ,n
augroup END
-map zc z=1<CR><CR>
+noremap zc z=1<CR><CR>
function! SetLocalTabs(tabsize)
execute 'setlocal tabstop=' . a:tabsize
@@ -407,4 +407,3 @@ function! VimFootnotes()
endif
startinsert!
endfunction
-