Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
最近、Jay Fields のブログで、Jay が emacs のフォントロック モードを使用して単語の表示を記号に変更している投稿に出くわしました。
Vimでこれを行う方法はありますか?
はい、Vim の隠し機能は、一致を単一の置換文字に置き換えます (またはまったく置き換えません)。これは構文の強調表示に統合されています。 を参照してください:help :syn-conceal。
:help :syn-conceal
たとえば、組み込みのTexファイルタイプはこれを使用して、特別なシーケンスをギリシャ文字などとして直接表示します。を参照してください:help tex-conceal。実装はruntime/syntax/tex.vim、標準の vim ディストリビューションに含まれています。
:help tex-conceal
runtime/syntax/tex.vim