From b72a8f96994f5e91e2168c63effb38f3f6e17b25 Mon Sep 17 00:00:00 2001 From: Metin Yazici Date: Fri, 5 Jan 2024 15:40:49 +0100 Subject: [PATCH] Add vim docs about cheat syntax highlighting --- docs/vim.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 docs/vim.md 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^\$.*$" +```