diff options
author | Matthias Braendli <matthias.braendli@u-blox.com> | 2014-01-13 08:42:28 +0100 |
---|---|---|
committer | Matthias Braendli <matthias.braendli@u-blox.com> | 2014-01-13 08:42:28 +0100 |
commit | b37461e6e3539962b9abc6c60374dd55dd1408ce (patch) | |
tree | 988e690802b8bf3d3f215cab68c3c18d1b2a7c54 /dotvimrc | |
parent | af7c850425aa0f97e644301840fe53c7f49e2dc6 (diff) | |
download | vimrc-b37461e6e3539962b9abc6c60374dd55dd1408ce.tar.gz vimrc-b37461e6e3539962b9abc6c60374dd55dd1408ce.tar.bz2 vimrc-b37461e6e3539962b9abc6c60374dd55dd1408ce.zip |
change map to noremap
Diffstat (limited to 'dotvimrc')
-rw-r--r-- | dotvimrc | 33 |
1 files changed, 16 insertions, 17 deletions
@@ -208,8 +208,8 @@ function! MPB_Flip_Cpp_H() endif endfun -map <F4> :call MPB_Flip_Ext()<CR> -map <F3> :call MPB_Flip_Cpp_H()<CR> +noremap <F4> :call MPB_Flip_Ext()<CR> +noremap <F3> :call MPB_Flip_Cpp_H()<CR> "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 <F5> :let @/ = expand('<cword>')<CR>:3match none<CR> +noremap <F5> :let @/ = expand('<cword>')<CR>:3match none<CR> " F6: Highlight the word under cursor in darkcyan highlight ManualHighlight ctermbg=darkcyan guibg=darkcyan -map <F6> :exe printf('match ManualHighlight /%s/', escape(expand('<cword>'), '/\'))<CR> +noremap <F6> :exe printf('match ManualHighlight /%s/', escape(expand('<cword>'), '/\'))<CR> "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 <Leader>fs :cscope f s <cword><Enter> +noremap <Leader>fs :cscope f s <cword><Enter> if has("cscope") " add any database in current directory @@ -251,27 +251,27 @@ if has("cscope") endif "short tag and tselect -map <Leader>[ :tselect <C-r><C-w><CR> -map <Leader>] :tag <C-r><C-w><CR> +noremap <Leader>[ :tselect <C-r><C-w><CR> +noremap <Leader>] :tag <C-r><C-w><CR> "I use bnext and bprev a lot -map [b :bprev<CR> -map ]b :bnext<CR> +noremap [b :bprev<CR> +noremap ]b :bnext<CR> -"other useful mapping -map [l :lprev<CR> -map ]l :lnext<CR> +"Same for location list +noremap [l :lprev<CR> +noremap ]l :lnext<CR> "GIT timelapse -map <Leader>gt :call TimeLapse()<cr> +noremap <Leader>gt :call TimeLapse()<cr> noremap <Leader>e :NERDTreeToggle<CR> noremap <Leader>s :SyntasticToggle<CR> -noremap <Leader>t :set expandtab!<CR> +noremap <Leader>T :set expandtab!<CR> -" Vim. Live it. ------------------------------------------------------- {{{ +" Vim. Live it. noremap <up> <nop> noremap <down> <nop> noremap <left> <nop> @@ -280,10 +280,9 @@ inoremap <down> <nop> inoremap <left> <nop> inoremap <right> <nop> inoremap <up> <nop> -" }}} "very magic search -map <Leader>/ /\v +noremap <Leader>/ /\v "remove adding stars in comments set formatoptions-=ro |