From f492a94db607eb85bb6b73600dedf8bc4c6cfc16 Mon Sep 17 00:00:00 2001 From: jdhao Date: Thu, 11 Aug 2022 01:28:14 +0800 Subject: [PATCH] update readme about mappings --- README.md | 77 +++++++++++++++++++++++++++++-------------------------- 1 file changed, 40 insertions(+), 37 deletions(-) diff --git a/README.md b/README.md index f83dafb..e9010d5 100644 --- a/README.md +++ b/README.md @@ -142,43 +142,46 @@ Go to a string starting with `se` Some of the shortcuts I use frequently are listed here. In the following shortcuts, `` represents ASCII character `,`. -| Shortcut | Mode | platform | Description | -|-------------------|---------------|-----------------|------------------------------------------------------------------| -| `ff` | Normal | Linux/macOS/Win | Fuzzy file searching in a floating window | -| `fh` | Normal | Linux/macOS/Win | Fuzzy help file grepping in a floating window | -| `fg` | Normal | Linux/macOS/Win | Fuzzy project-wide grepping in a floating window | -| `ft` | Normal | Linux/macOS/Win | Fuzzy buffer tag searching in a floating window | -| `fb` | Normal | Linux/macOS/Win | Fuzzy buffer switching in a floating window | -| `` | Normal | Linux/macOS/Win | Remove trailing white spaces | -| `v` | Normal | Linux/macOS/Win | Reselect last pasted text | -| `ev` | Normal | Linux/macOS/Win | Edit Nvim config in a new tabpage | -| `sv` | Normal | Linux/macOS/Win | Reload Nvim config | -| `st` | Normal | Linux/macOS/Win | Show highlight group for cursor text | -| `q` | Normal | Linux/macOS/Win | Quit current window | -| `Q` | Normal | Linux/macOS/Win | Quit all window and close Nvim | -| `w` | Normal | Linux/macOS/Win | Save current buffer content | -| `y` | Normal | Linux/macOS/Win | Copy the content of entire buffer to default register | -| `cl` | Normal | Linux/macOS/Win | Toggle cursor column | -| `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 | -| `gpl` | Normal | Linux/macOS/Win | Run git pull | -| `gpu` | Normal | Linux/macOS/Win | Run git push | -| `` | Normal | Linux/macOS/Win | Run current source file (for Python, C++) | -| `` | Normal | Linux/macOS/Win | Toggle spell checking | -| `` | Normal | Linux/macOS/Win | Toggle paste mode | -| `\x` | Normal | Linux/macOS/Win | Close location or quickfix window | -| `\d` | Normal | Linux/macOS/Win | Close current buffer and go to previous buffer | -| `{count}gb` | Normal | Linux/macOS/Win | Go to buffer {count} or next buffer in the buffer list. | -| `Alt-m` | Normal | macOS/Win | Markdown previewing in system browser | -| `Alt-Shift-m` | Normal | macOS/Win | Stopping Markdown previewing in system browser | -| `ob` | Normal/Visual | macOS/Win | Open link under cursor or search visual selection | -| `ctrl-u` | Insert | Linux/macOS/Win | Turn word under cursor to upper case | -| `ctrl-t` | Insert | Linux/macOS/Win | Turn word under cursor to title case | -| `jk` | Insert | Linux/macOS/Win | Return to Normal mode without lagging | +| Shortcut | Mode | platform | Description | +|-------------------|---------------|-----------------|--------------------------------------------------------------------------| +| `ff` | Normal | Linux/macOS/Win | Fuzzy file searching in a floating window | +| `fh` | Normal | Linux/macOS/Win | Fuzzy help file grepping in a floating window | +| `fg` | Normal | Linux/macOS/Win | Fuzzy project-wide grepping in a floating window | +| `ft` | Normal | Linux/macOS/Win | Fuzzy buffer tag searching in a floating window | +| `fb` | Normal | Linux/macOS/Win | Fuzzy buffer switching in a floating window | +| `` | Normal | Linux/macOS/Win | Remove trailing white spaces | +| `v` | Normal | Linux/macOS/Win | Reselect last pasted text | +| `ev` | Normal | Linux/macOS/Win | Edit Nvim config in a new tabpage | +| `sv` | Normal | Linux/macOS/Win | Reload Nvim config | +| `st` | Normal | Linux/macOS/Win | Show highlight group for cursor text | +| `q` | Normal | Linux/macOS/Win | Quit current window | +| `Q` | Normal | Linux/macOS/Win | Quit all window and close Nvim | +| `w` | Normal | Linux/macOS/Win | Save current buffer content | +| `y` | Normal | Linux/macOS/Win | Copy the content of entire buffer to default register | +| `cl` | Normal | Linux/macOS/Win | Toggle cursor column | +| `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 | +| `gpl` | Normal | Linux/macOS/Win | Run git pull | +| `gpu` | Normal | Linux/macOS/Win | Run git push | +| `` | Normal | Linux/macOS/Win | Compile&run current source file (for C++, LaTeX, Lua, Python) | +| `` | Normal | Linux/macOS/Win | Toggle spell checking | +| `` | Normal | Linux/macOS/Win | Toggle paste mode | +| `\x` | Normal | Linux/macOS/Win | Close location or quickfix window | +| `\d` | Normal | Linux/macOS/Win | Close current buffer and go to previous buffer | +| `{count}gb` | Normal | Linux/macOS/Win | Go to buffer `{count}` or next buffer in the buffer list. | +| `{operator}iB` | Normal | Linux/macOS/Win | Operate in the whole buffer, `{operator}` can be `v`, `y`, `c`, `d` etc. | +| `Alt-k` | Normal | Linux/macOS/Win | Move current line or selected lines up | +| `Alt-j` | Normal | Linux/macOS/Win | Move current line or selected lines down | +| `Alt-m` | Normal | macOS/Win | Markdown previewing in system browser | +| `Alt-Shift-m` | Normal | macOS/Win | Stopping Markdown previewing in system browser | +| `ob` | Normal/Visual | macOS/Win | Open link under cursor or search visual selection | +| `ctrl-u` | Insert | Linux/macOS/Win | Turn word under cursor to upper case | +| `ctrl-t` | Insert | Linux/macOS/Win | Turn word under cursor to title case | +| `jk` | Insert | Linux/macOS/Win | Return to Normal mode without lagging | # Custom commands