Browse Source

Small changes to the way fugitive is bound and updating old bindings to

new fugitive commands.
tags/vimscript-final
Taylor Bockman 2 years ago
parent
commit
9cee520268
  1. 14
      README.md
  2. 9
      conf/git.vim

14
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 <Leader>gs :Git status<CR>
nnoremap <Leader>gd :Git diff<CR>
nnoremap <Leader>gb :Git blame<CR>
nnoremap <Leader>gc :Git commit<CR>
nnoremap <Leader>gp :Git push<CR>
```
### LSP
`vim-lsp` is installed with `vim-lsp-settings`. While editing a file that has a supported LSP server

9
conf/git.vim

@ -1,7 +1,8 @@
" Fugitive Configuration
" Fugitive bindings
nnoremap <Leader>gs :Gstatus<CR>
nnoremap <Leader>gd :Gdiff<CR>
nnoremap <Leader>gb :Gblame<CR>
nnoremap <Leader>gc :Gcommit<CR>
nnoremap <Leader>gs :Git status<CR>
nnoremap <Leader>gd :Git diff<CR>
nnoremap <Leader>gb :Git blame<CR>
nnoremap <Leader>gc :Git commit<CR>
nnoremap <Leader>gp :Git push<CR>

Loading…
Cancel
Save