在 Vim 中隐藏 LaTeX 的 \index 命令
Conceal LaTeX's \index command in Vim
如何使用 Vim 中的隐藏功能来隐藏 LaTeX 中的 \index
命令?
命令在大括号内接受一个参数,内容任意(但没有换行符),即\index{...}
.
我记得在 reddit post:
中找到了这个
syn match texStatement /\index{[^}]*}\+/ conceal cchar=⚓
(这个 "replaces" 一切 - 命令和键 - 带有锚字符)
如何使用 Vim 中的隐藏功能来隐藏 LaTeX 中的 \index
命令?
命令在大括号内接受一个参数,内容任意(但没有换行符),即\index{...}
.
我记得在 reddit post:
中找到了这个syn match texStatement /\index{[^}]*}\+/ conceal cchar=⚓
(这个 "replaces" 一切 - 命令和键 - 带有锚字符)