# HG changeset patch # User zegervdv # Date 1415130552 -3600 # Node ID a7247b4a7e69f4a8a5b0419aad89aae982bd3f48 # Parent e4c677e2acde59e15928cbb70337bc506bbb4974 Fix issue with mapping where vim would hang on unmapped keys diff -r e4c677e2acde -r a7247b4a7e69 vimrc --- a/vimrc Tue Nov 04 20:38:19 2014 +0100 +++ b/vimrc Tue Nov 04 20:49:12 2014 +0100 @@ -122,6 +122,9 @@ " let mapleader = " " map +" Fix weird error where space n hangs vim with search +noremap n + " See long lines as line breaks map j gj map k gk @@ -150,7 +153,7 @@ inoremap %%a " Switch between the last two files -nnoremap +nnoremap " Move between buffers nnoremap gb :bnext nnoremap gB :bprevious @@ -163,11 +166,6 @@ nnoremap n nzzzv nnoremap N Nzzzv -" Show local search results in quickfix -nnoremap / :execute 'vimgrep /'.@/.'/g %':copen -nnoremap ? :Ag -" nnoremap ? :execute "Ag! '" . substitute(substitute(substitute(@/, "\\\\<", "\\\\b", ""), "\\\\>", "\\\\b", ""), "\\\\v", "","") . "'" - " Clear highlight nnoremap :nohl @@ -176,10 +174,6 @@ nnoremap % vnoremap % -" Move between tabs -map w :tabprevious -map n :tabnext - " Move between splits map j map k @@ -498,12 +492,6 @@ nnoremap e :VimFilerExplorer let g:vimfiler_ignore_pattern = '\%(.o\|.bin\|.elf\|.un\~\|.swp\)$' " }}} -" Vim - Rspec {{{ -map t :call RunCurrentSpecFile() -" map s :call RunNearestSpec() -" map l :call RunLastSpec() -" map r :call RunAllSpecs() -" }}} " Cucumber {{{ " map f :call RunAllFeatures() " map k :call RunCurrentFeature()