diff options
| author | jdhao <jdhao@hotmail.com> | 2021-12-05 11:20:34 +0800 |
|---|---|---|
| committer | jdhao <jdhao@hotmail.com> | 2021-12-05 11:20:34 +0800 |
| commit | dd61f1da8c16df691b1a063c969a4a11b3c4fd63 (patch) | |
| tree | 91492cd5e388b7f7a64edcfe42061fb3ea19ff1d | |
| parent | 9e6a71c32df9659c2b0b2115e7c28afd710c68a0 (diff) | |
more fugitive shortcut
| -rw-r--r-- | README.md | 2 | ||||
| -rw-r--r-- | core/plugins.vim | 1 |
2 files changed, 3 insertions, 0 deletions
@@ -130,6 +130,8 @@ represents ASCII character `,`. | `<leader>cd` | Normal | Linux/macOS/Win | Change current working directory to to the dir of current buffer | | `<space>t` | Normal | Linux/macOS/Win | Toggle tag window (show project tags in the right window) | | `<leader>gs` | Normal | Linux/macOS/Win | Show Git status result | +| `<leader>gw` | Normal | Linux/macOS/Win | Run Git add for current file | +| `<leader>gd` | Normal | Linux/macOS/Win | Run git diff for current file | | `<leader>gc` | Normal | Linux/macOS/Win | Run git commit | | `<F9>` | Normal | Linux/macOS/Win | Run current source file (for Python, C++) | | `<F11>` | Normal | Linux/macOS/Win | Toggle spell checking | diff --git a/core/plugins.vim b/core/plugins.vim index 12edb71..08f7b8b 100644 --- a/core/plugins.vim +++ b/core/plugins.vim @@ -215,6 +215,7 @@ let g:signify_sign_change = '~' nnoremap <silent> <leader>gs :Git<CR> nnoremap <silent> <leader>gw :Gwrite<CR> nnoremap <silent> <leader>gc :Git commit<CR> +nnoremap <silent> <leader>gd :Gdiffsplit<CR> nnoremap <silent> <leader>gpl :Git pull<CR> " Note that to use bar literally, we need backslash it, see also `:h :bar`. nnoremap <silent> <leader>gpu :15split \| term git push |
