honza/vim-snippets

Tex: New snippet for fraction is too intrusive

cristobaltapia opened this issue · 2 comments

The snippet defined here (see below) inserts a fraction (\frac{ }{ }) every time that the / (slash) is used. This is a symbol that is commonly used also outside of the mathematical scope and should not autotrigger without asking (e.g. when writing a file path). If it is OK for you, I would propose to either remove it or make it aware of the math context before it autotriggers.

snippet / "Fraction" i
\\frac{${VISUAL}}{$1}$0
endsnippet
lpil commented

Let's remove it. Would you like to make a PR @cristobaltapia ?

Already done :)