diff --git a/docs/vim.md b/docs/vim.md new file mode 100644 index 0000000..914da75 --- /dev/null +++ b/docs/vim.md @@ -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^\$.*$" +```