From 9e87d3b4abc58324c48ed0e8fbd2d3e7913c3db4 Mon Sep 17 00:00:00 2001 From: jdhao Date: Fri, 23 Oct 2020 21:02:59 +0800 Subject: [PATCH] update doc on mappings --- README.md | 49 ++++++++++++++++++++++++++----------------------- 1 file changed, 26 insertions(+), 23 deletions(-) diff --git a/README.md b/README.md index bb51ef0..ad60d56 100644 --- a/README.md +++ b/README.md @@ -45,29 +45,32 @@ itself and the configuration on different platforms (Linux, macOS and Windows). Some of the shortcuts I use frequently. In the following shortcuts, `` represents the `,` character. -| Shortcut | Mode | Description | -|-------------------|--------|-----------------------------------------------------------| -| `f` | Normal | Fuzzy file search in a floating window | -| `h` | Normal | Fuzzy help search in a floating window | -| `b` | Normal | Fuzzy buffer tag search in a floating window | -| `` | Normal | Remove trailing whitespaces | -| `v` | Normal | Reselect last pasted text | -| `ev` | Normal | Edit Neovim config in a new tabpage | -| `sv` | Normal | Reload Neovim config | -| `q` | Normal | Quit current window | -| `Q` | Normal | Quit all window and close Neovim | -| `w` | Normal | Save current buffer content | -| `cd` | Normal | Change current directory to where current file is | -| `y` | Normal | Copy the content of entire buffer to default register | -| `cl` | Normal | Toggle cursor column | -| `t` | Normal | Toggle tag window (show project tags in the right window) | -| `` | Normal | Toggle spell checking | -| `` | Normal | Toggle paste mode | -| `\x` | Normal | Close location or quickfix window | -| `\d` | Normal | Close current buffer and go to previous buffer | -| `ctrl-u` | Insert | Turn word under cursor to upper case | -| `ctrl-t` | Insert | Turn word under cursor to title case | -| `jk` | Insert | Return to Normal mode (faster ``) | +| Shortcut | Mode | platform | Description | +|-------------------|---------------|-----------------|-----------------------------------------------------------| +| `f` | Normal | Linux/macOS/Win | Fuzzy file search in a floating window | +| `h` | Normal | Linux/macOS/Win | Fuzzy help search in a floating window | +| `b` | Normal | Linux/macOS/Win | Fuzzy buffer tag search in a floating window | +| `` | Normal | Linux/macOS/Win | Remove trailing whitespaces | +| `v` | Normal | Linux/macOS/Win | Reselect last pasted text | +| `ev` | Normal | Linux/macOS/Win | Edit Neovim config in a new tabpage | +| `sv` | Normal | Linux/macOS/Win | Reload Neovim config | +| `q` | Normal | Linux/macOS/Win | Quit current window | +| `Q` | Normal | Linux/macOS/Win | Quit all window and close Neovim | +| `w` | Normal | Linux/macOS/Win | Save current buffer content | +| `cd` | Normal | Linux/macOS/Win | Change current directory to where current file is | +| `y` | Normal | Linux/macOS/Win | Copy the content of entire buffer to default register | +| `cl` | Normal | Linux/macOS/Win | Toggle cursor column | +| `t` | Normal | Linux/macOS/Win | Toggle tag window (show project tags in the right window) | +| `` | 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 {count} buffer or next buffer in the buffer list. | +| `Alt-M` | Normal | macOS/Win | Render Markdown to HTML and open it 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 (faster ``) | # Trouble shooting