You can use it in vscode instead of vim like https://castel.dev/post/lecture-notes-1/#fractions
Use it via vscode extension https://marketplace.visualstudio.com/items?itemName=OrangeX4.hsnips
Specially, it support math environment! It only goes into effect in $...$
, $$...$$
, etc...
For example:
(1+2)/ ---> \frac{1+2}{}
The snippets is adapted from https://zhuanlan.zhihu.com/p/199268436.