Skip to content

Commit

Permalink
Merge pull request #870 from strboul/vim-colors
Browse files Browse the repository at this point in the history
Add vim docs about cheat syntax highlighting
  • Loading branch information
denisidoro authored Jan 6, 2024
2 parents 9e20ade + b72a8f9 commit 6968a23
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docs/vim.md
Original file line number Diff line number Diff line change
@@ -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^\$.*$"
```

0 comments on commit 6968a23

Please sign in to comment.