Skip to content

Commit 5434131

Browse files
committed
Change git commands to fugitive commands
Small change to functionalities: - git add: now adds olny *current* file - git commit: splits window for commit message
1 parent 40b9834 commit 5434131

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ Commands | Descriptions
4949
`,f` | Search in the project
5050
`,o` | Open github file/line (website), if used git in **github**
5151
`,sh` | Open shell terminal inside Vim
52-
`,ga` | git add **.**
53-
`,gc` | git commit -m
52+
`,ga` | Execute *git add* on current file
53+
`,gc` | git commit (splits window to write commit message)
5454
`,gsh` | git push
5555
`,gll` | git pull
5656
`,gs` | git status

vim_template/vimrc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -287,10 +287,10 @@ noremap <Leader>h :<C-u>split<CR>
287287
noremap <Leader>v :<C-u>vsplit<CR>
288288
289289
"" Git
290-
noremap <Leader>ga :!git add .<CR>
291-
noremap <Leader>gc :!git commit -m '<C-R>="'"<CR>
292-
noremap <Leader>gsh :!git push<CR>
293-
noremap <Leader>gll :!git pull<CR>
290+
noremap <Leader>ga :Gwrite<CR>
291+
noremap <Leader>gc :Gcommit<CR>
292+
noremap <Leader>gsh :Gpush<CR>
293+
noremap <Leader>gll :Gpull<CR>
294294
noremap <Leader>gs :Gstatus<CR>
295295
noremap <Leader>gb :Gblame<CR>
296296
noremap <Leader>gd :Gvdiff<CR>

0 commit comments

Comments
 (0)