usr

Modulate your userpace into POSIX-compliant shell scripts!
git clone git://clone.theohenson.com/usr.git
Log | Files | Refs | README

commit 6ccb6d35be56ff6fd88258cc8d4b5ae104dcf598
parent eb929f805ddd0e55c4b0fe2bb3957e1237ac57f0
Author: Theo Henson <[email protected]>
Date:   Tue, 22 Dec 2020 23:16:51 -0500

Implement vim fugitive abbreviations

Diffstat:
Mhome/.config/nvim/init.vim | 14++++++++++++++
1 file changed, 14 insertions(+), 0 deletions(-)

diff --git a/home/.config/nvim/init.vim b/home/.config/nvim/init.vim @@ -129,6 +129,20 @@ set signcolumn=yes let g:vimwiki_list = [{'path': '~/docs/vimwiki', 'syntax': 'markdown', 'ext': '.md'}] " }}}2 +" Git fugitive {{{2 +cnorea <expr> g getcmdpos() == 2 ? 'Git' : 'g' +cnorea <expr> gch getcmdpos() == 4 ? 'Git checkout' : 'gch' +cnorea <expr> gc getcmdpos() == 3 ? 'Git commit -S' : 'gc' +cnorea <expr> gs getcmdpos() == 3 ? 'Git status' : 'gs' +cnorea <expr> gd getcmdpos() == 3 ? 'Git diff' : 'gd' +cnorea <expr> gb getcmdpos() == 3 ? 'Git branch' : 'gb' +cnorea <expr> ga getcmdpos() == 3 ? 'Git add' : 'ga' +cnorea <expr> gp getcmdpos() == 3 ? 'Git pull' : 'gp' +cnorea <expr> gch getcmdpos() == 4 ? 'Git checkout' : 'gch' +cnorea <expr> gpsh getcmdpos() == 5 ? 'Git push' : 'gpsh' +cnorea <expr> gbpsh getcmdpos() == 6 ? 'Git push --set-upstream origin' : 'gbpsh' +" }}}2 + " Status line {{{2 set showcmd set noshowmode