Skip to content

Allow arrow keys only in insert mode? #68

Answered by m4xshen
agoodshort asked this question in Q&A
Discussion options

You must be logged in to vote

First of all thanks for the feedback!

Here's the help files to help you understand "" and "i":

:h nvim_set_keymap()

      • {mode}  Mode short-name (map command prefix: "n", "i", "v", "x", …) or
                "!" for |:map!|, or empty string for |:map|.

:h map-table

         Mode  | Norm | Ins | Cmd | Vis | Sel | Opr | Term | Lang |  
Command        +------+-----+-----+-----+-----+-----+------+------+  
[nore]map      | yes  |  -  |  -  | yes | yes | yes |  -   |  -   |
n[nore]map     | yes  |  -  |  -  |  -  |  -  |  -  |  -   |  -   |
[nore]map!     |  -   | yes | yes |  -  |  -  |  -  |  -   |  -   |
i[nore]map     |  -   | yes |  -  |  -  |  -  |  -  |  -   |  -   |
c[nore]map     …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@agoodshort
Comment options

Answer selected by agoodshort
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants