dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit 6dfd720e5494c0c3b18c60a308f4fe87b16b15f2
parent 48d0996abf873c78084c71dea3721f68a7869eca
Author: Alex Balgavy <alex@balgavy.eu>
Date:   Tue, 15 Dec 2020 15:45:24 +0100

vim: jump to next/previous incsearch result with tab

Former-commit-id: d750c7515326acaca8271e3d66884ec403fc7630
Diffstat:
Mvim/vimrc | 8+++++++-
1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/vim/vimrc b/vim/vimrc @@ -893,10 +893,16 @@ nnoremap <silent><Leader>gw :call setbufvar(winbufnr(popup_atcursor(systemlist(" " Avoid paste hijacking in insert mode inoremap <c-r> <c-r><c-o> -" Up/down errors on the command line search for commands starting with current +" Up/down arrows on the command line search for commands starting with current " string. I want <c-n/p> to do the same. cnoremap <c-p> <up> cnoremap <c-n> <down> + +" Use <Tab> and <S-Tab> to jump to next search result, +" while keeping <Tab>'s wildmenu function. +set wildcharm=<c-z> +cnoremap <expr> <Tab> getcmdtype() =~ '[?/]' ? "<c-g>" : "<c-z>" +cnoremap <expr> <S-Tab> getcmdtype() =~ '[?/]' ? "<c-t>" : "<S-Tab>" " Autocommands {{{1 if has('autocmd') augroup vimrc_sets