mirror of
https://github.com/denisidoro/navi.git
synced 2026-01-23 10:16:08 +00:00
583 B
583 B
Vim widget
Syntax Highlighting
If you want syntax highlighting support for Navi in Vim, you need to
add those syntax rules to your syntax files such as at $VIMRUNTIME/syntax/navi.vim.
The rules are defined based on the Cheatsheet syntax.
Here is an example:
syntax match Comment "\v^;.*$"
syntax match Statement "\v^\%.*$"
syntax match Operator "\v^\#.*$"
syntax match String "\v\<.{-}\>"
syntax match String "\v^\$.*$"