mirror of
https://github.com/denisidoro/navi
synced 2025-02-25 11:37:15 +00:00
Add vim docs about cheat syntax highlighting
This commit is contained in:
parent
9e20adeb41
commit
b72a8f9699
1 changed files with 13 additions and 0 deletions
13
docs/vim.md
Normal file
13
docs/vim.md
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
## vim
|
||||||
|
|
||||||
|
If you want syntax highlighting support for Navi in Vim, add those syntax rules
|
||||||
|
to your syntax files such as at `$VIMRUNTIME/syntax/navi.vim`.
|
||||||
|
The rules are defined based on the [Cheatsheet syntax](cheatsheet_syntax.md).
|
||||||
|
|
||||||
|
```vim
|
||||||
|
syntax match Comment "\v^;.*$"
|
||||||
|
syntax match Statement "\v^\%.*$"
|
||||||
|
syntax match Operator "\v^\#.*$"
|
||||||
|
syntax match String "\v\<.*\>"
|
||||||
|
syntax match String "\v^\$.*$"
|
||||||
|
```
|
Loading…
Add table
Reference in a new issue