From 9cee520268ffd865f6f72cc527fffe81a4e4ced6 Mon Sep 17 00:00:00 2001 From: Taylor Bockman Date: Fri, 14 Oct 2022 12:36:22 -0700 Subject: [PATCH] Small changes to the way fugitive is bound and updating old bindings to new fugitive commands. --- README.md | 14 ++++++++++++++ conf/git.vim | 9 +++++---- 2 files changed, 19 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 046c4a7..a79c07e 100644 --- a/README.md +++ b/README.md @@ -53,11 +53,25 @@ order issues. This may be patched in the future. ## Other Notes +### Default Leader + +The default leader is the space key. + ### Git `vim-fugitive` is installed. Bindings can be found in `conf/keybinds.vim` and documentation can be found [here](https://github.com/tpope/vim-fugitive). +The following binds are set to help development: + +``` +nnoremap gs :Git status +nnoremap gd :Git diff +nnoremap gb :Git blame +nnoremap gc :Git commit +nnoremap gp :Git push +``` + ### LSP `vim-lsp` is installed with `vim-lsp-settings`. While editing a file that has a supported LSP server diff --git a/conf/git.vim b/conf/git.vim index 1ff7806..4d05fb7 100644 --- a/conf/git.vim +++ b/conf/git.vim @@ -1,7 +1,8 @@ " Fugitive Configuration " Fugitive bindings -nnoremap gs :Gstatus -nnoremap gd :Gdiff -nnoremap gb :Gblame -nnoremap gc :Gcommit +nnoremap gs :Git status +nnoremap gd :Git diff +nnoremap gb :Git blame +nnoremap gc :Git commit +nnoremap gp :Git push