You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+21-10Lines changed: 21 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -360,15 +360,16 @@ let g:OmniSharp_popup = 0
360
360
361
361
Apart from the insert-completion documentation window, all popups are closeable/scrollable using these mappings:
362
362
363
-
| Action name | Default mapping |
364
-
|----------------|-----------------|
365
-
|`close`|`<Esc>`|
366
-
|`lineDown`|`<C-e>`|
367
-
|`lineUp`|`<C-y>`|
368
-
|`halfPageDown`|`<C-d>`|
369
-
|`halfPageUp`|`<C-u>`|
370
-
|`pageDown`|`<C-f>`|
371
-
|`pageUp`|`<C-b>`|
363
+
| Action name | Default mapping |
364
+
|---------------------------|-----------------|
365
+
|`close` (Gvim, neovim) |`<Esc>`, `gq`|
366
+
|`close` (terminal Vim) \*|`gq`|
367
+
|`lineDown`|`<C-e>`|
368
+
|`lineUp`|`<C-y>`|
369
+
|`halfPageDown`|`<C-d>`|
370
+
|`halfPageUp`|`<C-u>`|
371
+
|`pageDown`|`<C-f>`|
372
+
|`pageUp`|`<C-b>`|
372
373
373
374
Additionally, the signature-help popup window provides the following mappings for navigating through method signatures and selected parameters:
374
375
@@ -391,7 +392,17 @@ let g:OmniSharp_popup_mappings = {
391
392
\}
392
393
```
393
394
394
-
Popups can be closed by using the `close` action mapping (`<Esc>` by default), and also by simply navigating to another line.
395
+
Popups can be closed by using the `close` action mapping (`gq` or `<Esc>` by default), and also by simply navigating to another line.
396
+
397
+
\***NOTE:** Vim in the terminal does _not_ have a default `<Esc>``close` mapping, because `<Esc>` mappings interfere with escape codes in terminal Vim, meaning that key-codes such as arrow keys and `<PageUp>`/`<PageDown>` do not work as expected.
398
+
Therefore, terminal Vim only has the `gq` mapping.
399
+
Gvim and neovim handle escape codes differently, so are not affected, and have both `gq` and `<Esc>` as default `close` mappings.
400
+
401
+
If you are happy with this limitation and prefer to use `<Esc>` anyway, configure it in `g:OmniSharp_popup_mappings`:
0 commit comments