aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-05-17 23:11:17 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-05-17 23:11:17 +1200
commit4cc82bd8878815145c2c0425527dc8c523d73672 (patch)
tree73855e283edd95e36e457526fcb989f36e36c038
parentd6858d9f7f648b3794ad7ef83113624407029341 (diff)
downloaddotfiles-4cc82bd8878815145c2c0425527dc8c523d73672.tar.gz
Make CTRL-L redraw the screen from insert mode
-rw-r--r--vim/vimrc3
1 files changed, 3 insertions, 0 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 2e19ff34..6b5fce34 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -236,6 +236,9 @@ imap <C-K><C-K> <Plug>(DigraphSearch)
nnoremap <silent> <C-L> :<C-U>nohlsearch<CR><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>