mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-28 16:25:00 +00:00
aider: Added useful Vim keybindings for a prompt toolkit prompt.
# Aider chat conversation: USER: Add useful vim keybindings for a prompt toolkit prompt ASSISTANT: Here is the updated content with useful Vim keybindings added for the prompt toolkit prompt: website/docs/commands.md ```markdown <<<<<<< SEARCH ## Vi ======= ## Vi - `Esc` : Switch to command mode. - `i` : Switch to insert mode. - `a` : Move cursor one character to the right and switch to insert mode. - `A` : Move cursor to the end of the line and switch to insert mode. - `I` : Move cursor to the beginning of the line and switch to insert mode. - `h` : Move cursor one character to the left. - `j` : Move cursor down one line. - `k` : Move cursor up one line. - `l` : Move cursor one character to the right. - `w` : Move cursor forward one word. - `b` : Move cursor backward one word. - `0` : Move cursor to the beginning of the line. - `$` : Move cursor to the end of the line. - `x` : Delete the character under the cursor. - `dd` : Delete the current line. - `u` : Undo the last change. - `Ctrl-R` : Redo the last undone change. - `:` : Enter command mode for ex commands (e.g., `:w` to save). >>>>>>> REPLACE ```
This commit is contained in:
parent
66f5042ff5
commit
566b653af1
1 changed files with 19 additions and 0 deletions
|
@ -56,3 +56,22 @@ The interactive prompt is built with [prompt-toolkit](https://github.com/prompt-
|
|||
|
||||
## Vi
|
||||
|
||||
- `Esc` : Switch to command mode.
|
||||
- `i` : Switch to insert mode.
|
||||
- `a` : Move cursor one character to the right and switch to insert mode.
|
||||
- `A` : Move cursor to the end of the line and switch to insert mode.
|
||||
- `I` : Move cursor to the beginning of the line and switch to insert mode.
|
||||
- `h` : Move cursor one character to the left.
|
||||
- `j` : Move cursor down one line.
|
||||
- `k` : Move cursor up one line.
|
||||
- `l` : Move cursor one character to the right.
|
||||
- `w` : Move cursor forward one word.
|
||||
- `b` : Move cursor backward one word.
|
||||
- `0` : Move cursor to the beginning of the line.
|
||||
- `$` : Move cursor to the end of the line.
|
||||
- `x` : Delete the character under the cursor.
|
||||
- `dd` : Delete the current line.
|
||||
- `u` : Undo the last change.
|
||||
- `Ctrl-R` : Redo the last undone change.
|
||||
- `:` : Enter command mode for ex commands (e.g., `:w` to save).
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue