Skip to main content
Share Your Experience: Take the 2024 Developer Survey

New answers tagged

1 vote
Accepted

Configure space using gc in LaTeX

The behavior is controlled by the commentstring option. To achieve what you want you should set the commentstring option to: % %s :setlocal commentstring=%\ %s To set that option for all LaTeX files ...
Vivian De Smedt's user avatar
1 vote

LaTeX with UltiSnips: How to automatically insert backslash in front of every math variable?

Just to cover something not mentioned by other answers: as you know, E363 is the following according to :help: *E363* When Vim runs into the limit it gives an error ...
D. Ben Knoble's user avatar
  • 26.4k
1 vote
Accepted

LaTeX with UltiSnips: How to automatically insert backslash in front of every math variable?

Looks like a case where using a plugin creates more problems than it solves. To be frank, I've never used UltiSnips and have little idea how it works or what problems it solves. To me, it looks like ...
Friedrich's user avatar
  • 2,033
0 votes

LaTeX with UltiSnips: How to automatically insert backslash in front of every math variable?

I would try: priority 200 context "math()" snippet '(?<!\\)((arc(sin|cos|tan|cot|csc|sec))|pi|zeta|int)' "ln" rwA \\`!p snip.rv = match.group(1)` endsnippet I belive the ...
Vivian De Smedt's user avatar

Top 50 recent answers are included