Skip to content
This repository has been archived by the owner on Apr 1, 2020. It is now read-only.

Shortcuts

Ryan C edited this page Nov 13, 2017 · 15 revisions

Shortcuts

General

Keypress Command
Ctrl-C / ⌘-C Copy to clipboard, (When in visual mode).
Ctrl-C / ⌘-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.

Language Server Interaction

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.

QuickOpen Menu

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.

Auto Completion

Keypress Command
Enter, Tab Select completion option.
Down, Ctrl-N Next completion option.
Up, Ctrl-P Previous completion option.
Esc Close completion menu.

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.
Clone this wiki locally