Mercurial > dotfiles.old
changeset 175:a7247b4a7e69
Fix issue with mapping where vim would hang on unmapped <leader> keys
author | zegervdv <zegervdv@me.com> |
---|---|
date | Tue, 04 Nov 2014 20:49:12 +0100 |
parents | e4c677e2acde |
children | f817460f011a |
files | vimrc |
diffstat | 1 files changed, 4 insertions(+), 16 deletions(-) [+] |
line wrap: on
line diff
--- 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 <space> <leader> +" Fix weird error where space n hangs vim with search +noremap <space>n <nop> + " See long lines as line breaks map j gj map k gk @@ -150,7 +153,7 @@ inoremap <C-f> <ESC>%%a " Switch between the last two files -nnoremap <SPACE><SPACE> <C-^> +nnoremap <leader><leader> <C-^> " Move between buffers nnoremap gb :bnext<CR> nnoremap gB :bprevious<CR> @@ -163,11 +166,6 @@ nnoremap n nzzzv nnoremap N Nzzzv -" Show local search results in quickfix -nnoremap <silent> <leader>/ :execute 'vimgrep /'.@/.'/g %'<CR>:copen<CR> -nnoremap <silent> <leader>? :Ag <cword><CR> -" nnoremap <silent> <leader>? :execute "Ag! '" . substitute(substitute(substitute(@/, "\\\\<", "\\\\b", ""), "\\\\>", "\\\\b", ""), "\\\\v", "","") . "'"<CR> - " Clear highlight nnoremap <silent> <C-l> :nohl<CR> @@ -176,10 +174,6 @@ nnoremap <TAB> % vnoremap <TAB> % -" Move between tabs -map <leader> w <ESC>:tabprevious<CR> -map <leader> n <ESC>:tabnext<CR> - " Move between splits map <C-j> <C-w>j map <C-k> <C-w>k @@ -498,12 +492,6 @@ nnoremap <leader>e :VimFilerExplorer<CR> let g:vimfiler_ignore_pattern = '\%(.o\|.bin\|.elf\|.un\~\|.swp\)$' " }}} -" Vim - Rspec {{{ -map <leader>t :call RunCurrentSpecFile()<CR> -" map <leader>s :call RunNearestSpec()<CR> -" map <leader>l :call RunLastSpec()<CR> -" map <leader>r :call RunAllSpecs()<CR> -" }}} " Cucumber {{{ " map <leader>f :call RunAllFeatures()<CR> " map <leader>k :call RunCurrentFeature()<CR>