Skip to content

Commit 6571a31

Browse files
authored
Initial cleanup
1 parent c08147b commit 6571a31

File tree

1 file changed

+38
-38
lines changed

1 file changed

+38
-38
lines changed

README.md

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ Notebook cell vim bindings
1616

1717
## Modes
1818

19-
Like vim, Jupyterlab has a distinction between edit mode and command mode. Jupyterlab Command mode is when the cursor is not in a specific cell, and edit mode when typing in a cell.
19+
Like vim, Jupyterlab has a distinction between Edit mode and Command mode. Jupyterlab is in Command mode when the cursor is not in a specific cell, and it is in Edit mode when typing in a cell.
2020

21-
This extension combines the Jupyterlab (Edit and Command) modes with the standard vim modes (Normal, Insert, Visual). So the set of modes now looks like:
21+
This extension combines the Jupyterlab (Edit and Command) modes with the standard vim modes (Normal, Insert and Visual). So the set of modes now looks like:
2222

23-
1. Jupyterlab Command Mode
24-
2. Jupyterlab Edit Mode
25-
- Insert
23+
1. Jupyterlab Command mode
24+
2. Jupyterlab Edit mode
2625
- Normal
26+
- Insert
2727
- Visual
2828

2929
See [key bindings for switching between modes](#switching-between-modes).
@@ -44,45 +44,45 @@ mamba install -c conda-forge jupyterlab_vim
4444

4545
To learn how to modify key bindings see the [modify-keybinds.md](modify-keybinds.md) file.
4646

47-
**Please note that all keys are lowercase unless `Shift` is explicitly indicated.**
48-
For example, `Y, Y` is two lowercase `y`s, `Shift-Y, Y` is one uppercase `Y` followed by a lowercase `y`.
47+
**Please note that all keys are lowercase unless <kbd>Shift</kbd> is explicitly indicated.**
48+
For example, <kbd>Y, Y</kbd> is two lowercase <kbd>y</kbd>s, and <kbd>Shift-Y, Y</kbd> is one uppercase <kbd>Y</kbd> followed by a lowercase <kbd>y</kbd>.
4949

50-
Shortcuts this extension introduces:
50+
Shortcuts that this extension introduces:
5151

5252
### Vim Ex commands
5353

5454
| Command | Action |
5555
| -------- | -------------------------- |
5656
| :w[rite] | Save Notebook |
57-
| :q[uit] | Enter Jupyter command mode |
57+
| :q[uit] | Enter Jupyter Command Mode |
5858

5959
### Vim command bindings
6060

61-
| Chord | Action |
62-
| --------------- | ------------------------- |
63-
| Ctrl-O, U | Undo Cell Action |
64-
| - | Split Cell at Cursor |
65-
| Ctrl-O, - | Split Cell at Cursor |
66-
| Ctrl-O, D | Cut Cell |
67-
| Ctrl-O, Y | Copy Cell |
68-
| Ctrl-O, P | Paste Cell |
69-
| Ctrl-Shift-J | Extend Marked Cells Below |
70-
| Ctrl-Shift-K | Extend Marked Cells Above |
71-
| Ctrl-O, O | Insert Cell Below |
72-
| Ctrl-O, Ctrl-O | Insert Cell Above |
73-
| Ctrl-J | Select Cell Below |
74-
| Ctrl-K | Select Cell Above |
75-
| Ctrl-O, G | Select First Cell |
76-
| Ctrl-O, Ctrl-G | Select Last Cell |
77-
| Ctrl-E | Move Cell Down |
78-
| Ctrl-Y | Move Cell Up |
79-
| Ctrl-O, Z, Z | Center Cell |
80-
| Ctrl-G | Show Tooltip |
81-
| Command/Ctrl-1 | Code Cell Mode |
82-
| Command/Ctrl-2 | Markdown Cell Mode |
83-
| Command/Ctrl-3 | Raw Cell Mode |
84-
| Shift-Escape | Leave Vim Mode |
85-
| Escape, Ctrl-\[ | Exit Vim Insert Mode |
61+
| Chord | Action |
62+
| -------------- | ------------------------- |
63+
| Ctrl-O, U | Undo Cell Action |
64+
| - | Split Cell at Cursor |
65+
| Ctrl-O, - | Split Cell at Cursor |
66+
| Ctrl-O, D | Cut Cell |
67+
| Ctrl-O, Y | Copy Cell |
68+
| Ctrl-O, P | Paste Cell |
69+
| Ctrl-Shift-J | Extend Marked Cells Below |
70+
| Ctrl-Shift-K | Extend Marked Cells Above |
71+
| Ctrl-O, O | Insert Cell Below |
72+
| Ctrl-O, Ctrl-O | Insert Cell Above |
73+
| Ctrl-J | Select Cell Below |
74+
| Ctrl-K | Select Cell Above |
75+
| Ctrl-O, G | Select First Cell |
76+
| Ctrl-O, Ctrl-G | Select Last Cell |
77+
| Ctrl-E | Move Cell Down |
78+
| Ctrl-Y | Move Cell Up |
79+
| Ctrl-O, Z, Z | Center Cell |
80+
| Ctrl-G | Show Tooltip |
81+
| Command/Ctrl-1 | Code Cell Mode |
82+
| Command/Ctrl-2 | Markdown Cell Mode |
83+
| Command/Ctrl-3 | Raw Cell Mode |
84+
| Shift-Esc | Exit to Command Mode |
85+
| Esc or Ctrl-\[ | Exit Current Mode |
8686

8787
### Jupyter command bindings
8888

@@ -115,10 +115,10 @@ Shortcuts this extension introduces:
115115
- <kbd>Shift</kbd>+<kbd>Esc</kbd>
116116
- <kbd>Esc</kbd> or <kbd>Ctrl</kbd>+<kbd>[</kbd>, if the "Enable `Esc` and `Ctrl-[` leaving vim Normal mode to Jupyter Command mode" option is enabled (on by default). To disable the option, go to Settings menu → Settings Editor → Notebook Vim.
117117
- To enter Insert mode from Normal mode, use one of the insert commmands, such as <kbd>i</kbd>, <kbd>I</kbd>, <kbd>a</kbd>, <kbd>A</kbd>, <kbd>o</kbd>, <kbd>O</kbd>, <kbd>c</kbd>, <kbd>C</kbd>, <kbd>s</kbd> or <kbd>S</kbd>.
118-
- To enter Visual Mode from Normal mode, use one of the visual commands, such as <kbd>v</kbd>, <kbd>V</kbd> or <kbd>Ctrl</kbd>+<kbd>V</kbd>.
119-
- From Insert or Visual modes:
120-
- To leave Insert or Visual modes to Normal Mode, press <kbd>Esc</kbd> or <kbd>Ctrl</kbd>+<kbd>[</kbd>.
121-
- To leave Insert or Visual modes to Command Mode, press <kbd>Shift</kbd>+<kbd>Esc</kbd>.
118+
- To enter Visual mode from Normal mode, use one of the visual commands, such as <kbd>v</kbd>, <kbd>V</kbd> or <kbd>Ctrl</kbd>+<kbd>V</kbd>.
119+
- From Insert or Visual mode:
120+
- To leave Insert or Visual mode to Normal mode, press <kbd>Esc</kbd> or <kbd>Ctrl</kbd>+<kbd>[</kbd>.
121+
- To leave Insert or Visual mode to Command mode, press <kbd>Shift</kbd>+<kbd>Esc</kbd>.
122122

123123
## Special Thanks
124124

0 commit comments

Comments
 (0)