diff --git a/README.md b/README.md index 603cadd..0bd1117 100644 --- a/README.md +++ b/README.md @@ -130,6 +130,8 @@ represents ASCII character `,`. | `cd` | Normal | Linux/macOS/Win | Change current working directory to to the dir of current buffer | | `t` | Normal | Linux/macOS/Win | Toggle tag window (show project tags in the right window) | | `gs` | Normal | Linux/macOS/Win | Show Git status result | +| `gw` | Normal | Linux/macOS/Win | Run Git add for current file | +| `gd` | Normal | Linux/macOS/Win | Run git diff for current file | | `gc` | Normal | Linux/macOS/Win | Run git commit | | `` | Normal | Linux/macOS/Win | Run current source file (for Python, C++) | | `` | 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 gs :Git nnoremap gw :Gwrite nnoremap gc :Git commit +nnoremap gd :Gdiffsplit nnoremap gpl :Git pull " Note that to use bar literally, we need backslash it, see also `:h :bar`. nnoremap gpu :15split \| term git push