From 890c8526ee1f7824d3882141530e6b26b546c2a8 Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Fri, 18 Oct 2024 16:07:36 +0200 Subject: [PATCH] vim:ftplug:gitcommit: Abbreviate `cq` to `%d | x` --- .config/vim/ftplugin/gitcommit.vim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.config/vim/ftplugin/gitcommit.vim b/.config/vim/ftplugin/gitcommit.vim index 1c87f01..4e219aa 100644 --- a/.config/vim/ftplugin/gitcommit.vim +++ b/.config/vim/ftplugin/gitcommit.vim @@ -13,3 +13,7 @@ let g:gutentags_enabled = 0 " /usr/share/nvim/runtime/syntax/gitcommit.vim " (see a376ff7b784c ("hooks:commit-msg: Relax subject length limit to 60")) "let g:gitcommit_summary_length = 60 + +" When aborting a commit I usually use :cq which I can't when committing through +" fugitive. Abbreviate it to something that works. +cabbrev cq %d x