diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-29 13:57:03 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-29 13:57:03 +1200 |
commit | 91b69d6ba0b1da81ed5e46419dc8dd36bb09005c (patch) | |
tree | 4b75a7a9e6c75c87b32dd7b7292f49e0fa1650a5 | |
parent | Compact 'wildignore' setting a bit (diff) | |
download | dotfiles-91b69d6ba0b1da81ed5e46419dc8dd36bb09005c.tar.gz dotfiles-91b69d6ba0b1da81ed5e46419dc8dd36bb09005c.zip |
Adjust insert mode CTRL-L mapping
-rw-r--r-- | vim/vimrc | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -250,13 +250,11 @@ endif " Map double Ctrl-K in insert mode to search digraph names imap <C-K><C-K> <Plug>(DigraphSearch) -" Stack normal/visual/select Ctrl-L to clear search highlight -nnoremap <silent> <C-L> :<C-U>nohlsearch<CR><C-L> +" Stack Ctrl-L to clear search highlight, make it work in insert mode too +nmap <silent> <C-L> :<C-U>nohlsearch<CR><C-L> +inoremap <C-L> <C-O><C-L> vnoremap <silent> <C-L> :<C-U>nohlsearch<CR>gv<C-L> -" Make Ctrl-L work in insert mode too; good for choppy terminals -inoremap <silent> <C-L> <C-O>:redraw<CR> - " Remap normal/visual & and g& to preserve substitution flags nnoremap <silent> & :&&<CR> xnoremap <silent> & :&&<CR> |