commit b3d06c7525659d725e6435b26ad28945845cdd5d
parent f808b46195268fc0f838e00fb39c4911de740d5f
Author: Alex Balgavy <alex@balgavy.eu>
Date: Sat, 27 Feb 2021 14:04:56 +0100
vim: fix vimrc jump maps
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/vim/vimrc b/vim/vimrc
@@ -823,6 +823,8 @@ nnoremap zs :exe "set foldlevel=".foldlevel(line('.'))<CR>
" Config edit mappings
" Why :drop? It uses the file if it's already open.
+" Also have to map c-c to no-op first, otherwise doesn't work
+nnoremap <C-c> <nop>
nnoremap <leader><C-E><C-V> :DropToFoldedVimrc<CR>zXgg
nnoremap <leader><C-E><C-A> :DropToFoldedVimrc<CR>zXgg/^" Autocommands {{<CR>:noh<CR>za
nnoremap <leader><C-E><C-C> :DropToFoldedVimrc<CR>zXgg/Commands {{<CR>:noh<CR>za