aboutsummaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-05-17 23:11:41 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-05-17 23:11:41 +1200
commit0448ac878d557623c526b34ec78f55548139fa7d (patch)
treee27fd2c5e889affb2b5bef80ba7eba67031a8bc8 /vim
parentMerge branch 'release/v4.30.0' (diff)
parentBump VERSION (diff)
downloaddotfiles-4.31.0.tar.gz (sig)
dotfiles-4.31.0.zip
Merge branch 'release/v4.31.0'v4.31.0
* release/v4.31.0: Bump VERSION Make CTRL-L redraw the screen from insert mode Rebuild dotfiles(7df) manual from README.md Don't clean up the dotfiles(7df) manual Correct path to dotfiles(7df) manual clean target
Diffstat (limited to 'vim')
-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>