From f5b5b89bb617eea49dcac07996ce95fdb32e4b71 Mon Sep 17 00:00:00 2001 From: Nathan Grigg Date: Tue, 24 Mar 2015 16:21:08 -0700 Subject: Override C-X and C-A --- ftplugin/beancount.vim | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'ftplugin/beancount.vim') diff --git a/ftplugin/beancount.vim b/ftplugin/beancount.vim index 20c2058..046c774 100644 --- a/ftplugin/beancount.vim +++ b/ftplugin/beancount.vim @@ -23,3 +23,16 @@ command! -buffer -range AlignCommodity " Omnifunc for account completion. setl omnifunc=beancount#complete_account + +" Don't allow C-X or C-A, since these are dangerous to a finance file. +try + nmap + nnoremap +catch /E227/ +endtry + +try + nmap + nnoremap +catch /E227/ +endtry -- cgit v1.2.3-2-gb3c3