aboutsummaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-07-21 01:53:20 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-07-21 01:53:20 +1200
commitda7378321ccb5ac3fd2d5b49347d74f995290fac (patch)
treeda0c4bd4b124fc6d74b5916d654e45d9e7ab0f1d /vim
parentOverhaul .vimrc for maximum vim-tiny support (diff)
downloaddotfiles-da7378321ccb5ac3fd2d5b49347d74f995290fac.tar.gz
dotfiles-da7378321ccb5ac3fd2d5b49347d74f995290fac.zip
Suppress insert_cancel.vim map if not &loadplugins
Diffstat (limited to 'vim')
-rw-r--r--vim/vimrc4
1 files changed, 3 insertions, 1 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 3babbf2d..49a1e2e6 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -178,7 +178,9 @@ nnoremap <silent> <C-L> :<C-U>nohlsearch<CR><C-L>
vnoremap <silent> <C-L> :<C-U>nohlsearch<CR>gv<C-L>
" Remap insert Ctrl-C to undo the escaped insert operation
-imap <C-C> <Plug>(InsertCancel)
+if &loadplugins
+ imap <C-C> <Plug>(InsertCancel)
+endif
" Map double Ctrl-K in insert mode to search digraph names
imap <C-K><C-K> <Plug>(DigraphSearch)