diff options
author | Nathan Grigg | 2015-03-24 16:21:08 -0700 |
---|---|---|
committer | Nathan Grigg | 2015-04-04 13:00:22 -0700 |
commit | f5b5b89bb617eea49dcac07996ce95fdb32e4b71 (patch) | |
tree | 25693a2b4db6d6ae67bb5f437c9ff00a5201a245 /ftplugin | |
parent | f70b4a3205f2d9ab3789f2f66e74328c8ad9ba7d (diff) | |
download | vim-beancount-f5b5b89bb617eea49dcac07996ce95fdb32e4b71.tar.gz |
Override C-X and C-A
Diffstat (limited to 'ftplugin')
-rw-r--r-- | ftplugin/beancount.vim | 13 |
1 files changed, 13 insertions, 0 deletions
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 <unique> <buffer> <C-X> <Nop> + nnoremap <buffer> <C-X><C-X> <C-X> +catch /E227/ +endtry + +try + nmap <buffer> <C-A> <Nop> + nnoremap <buffer> <C-A><C-A> <C-A> +catch /E227/ +endtry |