From b37461e6e3539962b9abc6c60374dd55dd1408ce Mon Sep 17 00:00:00 2001 From: Matthias Braendli Date: Mon, 13 Jan 2014 08:42:28 +0100 Subject: change map to noremap --- dotvimrc | 33 ++++++++++++++++----------------- 1 file changed, 16 insertions(+), 17 deletions(-) (limited to 'dotvimrc') diff --git a/dotvimrc b/dotvimrc index 094d91c..efd642b 100644 --- a/dotvimrc +++ b/dotvimrc @@ -208,8 +208,8 @@ function! MPB_Flip_Cpp_H() endif endfun -map :call MPB_Flip_Ext() -map :call MPB_Flip_Cpp_H() +noremap :call MPB_Flip_Ext() +noremap :call MPB_Flip_Cpp_H() "Show trailing whitespace highlight ExtraWhitespace ctermbg=darkgreen guibg=#344011 @@ -217,11 +217,11 @@ autocmd BufEnter * exe ':2match ExtraWhitespace /\s\+$\| \+\ze\t\|\t\+\ze /' " F5 sets the search register to the word under cursor, without moving " the cursor -map :let @/ = expand(''):3match none +noremap :let @/ = expand(''):3match none " F6: Highlight the word under cursor in darkcyan highlight ManualHighlight ctermbg=darkcyan guibg=darkcyan -map :exe printf('match ManualHighlight /%s/', escape(expand(''), '/\')) +noremap :exe printf('match ManualHighlight /%s/', escape(expand(''), '/\')) "if has("gui_running") " " auto highlight word under cursor @@ -238,7 +238,7 @@ set completeopt=menu,menuone,longest "let g:clang_complete_copen=1 "some CScope maps -map fs :cscope f s +noremap fs :cscope f s if has("cscope") " add any database in current directory @@ -251,27 +251,27 @@ if has("cscope") endif "short tag and tselect -map [ :tselect -map ] :tag +noremap [ :tselect +noremap ] :tag "I use bnext and bprev a lot -map [b :bprev -map ]b :bnext +noremap [b :bprev +noremap ]b :bnext -"other useful mapping -map [l :lprev -map ]l :lnext +"Same for location list +noremap [l :lprev +noremap ]l :lnext "GIT timelapse -map gt :call TimeLapse() +noremap gt :call TimeLapse() noremap e :NERDTreeToggle noremap s :SyntasticToggle -noremap t :set expandtab! +noremap T :set expandtab! -" Vim. Live it. ------------------------------------------------------- {{{ +" Vim. Live it. noremap noremap noremap @@ -280,10 +280,9 @@ inoremap inoremap inoremap inoremap -" }}} "very magic search -map / /\v +noremap / /\v "remove adding stars in comments set formatoptions-=ro -- cgit v1.2.3