This repository has been archived by the owner on Apr 1, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 298
Shortcuts
Bryan Phelps edited this page Mar 26, 2018
·
15 revisions
Keypress | Command |
---|---|
Ctrl-C / ⌘-C | Copy to clipboard, (When in visual mode). |
Ctrl-V / ⌘-V | Paste from clipboard, (When in insert or command mode). |
Alt-F4 / ⌘-Q | Quit. |
Ctrl-⇧-P / ⌘-⇧-P | Show Command Menu (When in normal mode). |
Ctrl-Pageup | Cycle to next Oni process. |
Ctrl-Pagedown | Cycle to previous Oni process. |
Keypress | Command |
---|---|
Ctrl-G | Open 'sneak mode.' |
Ctrl-W, Ctrl-V | Open vertical split. |
Ctrl-W, Ctrl-S | Open horizontal split. |
Ctrl-W, Ctrl-H | Move left a window. |
Ctrl-W, Ctrl-L | Move right a window. |
Ctrl-W, Ctrl-J | Move down a window. |
Ctrl-W, Ctrl-K | Move up a window. |
Keypress | Command |
---|---|
F2 | Rename variable (When in normal mode). |
Esc | Cancel rename. |
Enter | Confirm rename. |
F3 | Apply formatting. |
F12 | Go to definition, (When in normal mode and menu is not open). |
Ctrl-Enter, Ctrl-F12 | Go to definition and open in vertical split, (When in normal mode and menu is not open). |
⇧-Enter, ⇧-F12 | Go to definition and open in horizontal split, (When in normal mode and menu is not open). |
Alt-Enter / ⌘-Enter | Expand function. |
Ctrl-T / ⌘-T | Search symbols in workspace. |
Ctrl-⇧-T / ⇧-⌘-T | Search symbols in document. |
Keypress | Command |
---|---|
Ctrl-P / ⌘-P | Show quick open menu (When in normal mode and menu is not open). |
Ctrl-/ | Search current buffers (When in normal mode). |
Ctrl-Enter, Ctrl-V | Open selected file in vertical split. |
⇧-Enter, Ctrl-S | Open selected file in horizontal split. |
Ctrl-T | Open selected file in new tab. |
Keypress | Command |
---|---|
Enter, Tab | Select completion option. |
Down, Ctrl-N | Next completion option. |
Up, Ctrl-P | Previous completion option. |
Esc | Close completion menu. |
Keypress | Command |
---|---|
Enter | Select menu item. |
Down, Ctrl-N | Next menu item. |
Up, Ctrl-P | Previous menu item. |
Esc, Ctrl-[, Ctrl-C | Close menu. |