mirror of
https://github.com/denisidoro/navi.git
synced 2024-10-06 14:47:48 +03:00
Merge pull request #870 from strboul/vim-colors
Add vim docs about cheat syntax highlighting
This commit is contained in:
commit
6968a23919
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…
Reference in New Issue
Block a user