I am using VSCode on MacOS and Vim keybindings. I am fairly new to VSCode.
The only extension that’s Typst-related is Typst Preview v0.11.14.
When I am editing Typst (.typ) files, and I’m in Normal mode,
- pressing “i” does not go into insert mode. (if I go into other filetypes, “i” and “ESC” pretty reliably goes to insert and normal modes, respectively).
- Furthermore, if I hit i several times, it seems to jump to the end of the file.
- “a” also does not go into insert mode, but if I press it 3 times it does, unless I am in the middle of a pair of parentheses, in which case pressing “a” twice it jumps to the end of the parentheses and further presses do not go into insert mode.
- sometimes, if I press “i”, then “down”, then “i” again I go into insert mode.
Here’s what I tried so far.
- I looked up my VSCode keybindings and can’t really seem to find anything relevant with “i” and “a”.
- I also looked at the Typst Preview extension, but I couldn’t find anything useful.
- I suspect there is some weird buffer that I am defaulting to for my Typst files, since in the Status Bar at the bottom I see strings such as
<up><up><down>i
, so it seems that if I’m in this “buffer mode” even though it says I’m in Normal mode, the buffer is eating my i as part of some input instead of the vim command, and certain actions (such as pressing “i” and then “down”) seems to kill the buffer, after which “i” works as intended.
My questions are:
- Can someone explain what is going on here?
- Can someone explain how I might have been able to find this out myself? Is there an obvious way I could have “popped the hood?”