diff options
| -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 |
