aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-05-17 20:52:41 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-05-17 20:52:41 +1200
commit62b7d1bcdee22f78c6562b69442b22915d0cbac7 (patch)
treedb1b9e8a95cb3bc7793eaecf2d52d7c3a1dbabca
parent379ea2467ec6655cf89bc185a46d9356a4b1c173 (diff)
downloaddotfiles-62b7d1bcdee22f78c6562b69442b22915d0cbac7.tar.gz
Bind \L to toggle 'colorcolumn'
-rw-r--r--vim/vimrc4
1 files changed, 4 insertions, 0 deletions
diff --git a/vim/vimrc b/vim/vimrc
index c96435d8..2e19ff34 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -309,6 +309,10 @@ nnoremap <Leader>k :<C-U>marks<CR>
nnoremap <Leader>l :<C-U>setlocal list! list?<CR>
xnoremap <Leader>l :<C-U>setlocal list! list?<CR>gv
+" \L toggles 'colorcolumn' showing 'textwidth'
+nnoremap <Leader>L :<C-U>ToggleFlagLocal colorcolumn +1<CR>
+xnoremap <Leader>L :<C-U>ToggleFlagLocal colorcolumn +1<CR>gv
+
" \m shows normal maps
nnoremap <Leader>m :<C-U>map<CR>
" \M shows buffer-local normal maps