From cffd3da28c85814a54452e5c1e2f3e9c5fa53275 Mon Sep 17 00:00:00 2001 From: shawnfunke Date: Mon, 3 Jul 2023 20:10:50 +0200 Subject: [PATCH] Add Neovim syntax highlighting documentation --- contrib/vim/README.md | 31 ++++++++++++++++++++++++------- 1 file changed, 24 insertions(+), 7 deletions(-) diff --git a/contrib/vim/README.md b/contrib/vim/README.md index 4009f9582..c7ba19a90 100644 --- a/contrib/vim/README.md +++ b/contrib/vim/README.md @@ -1,16 +1,33 @@ -Install vim syntax highlighting for Hurl +# Support for Hurl Syntax Highlighting -``` +This enables basic syntax coloring for Hurl files in Vim/Neovim. + +## Installation + +### Vim + +Install Vim syntax highlighting for Hurl + +```bash mkdir -p ~/.vim/{ftdetect,syntax} cp ftdetect/hurl.vim ~/.vim/ftdetect cp syntax/hurl.vim ~/.vim/syntax ``` -Activate syntax highlighting in your ~/.vimrc +### Neovim + +Install Neovim syntax highlighting for Hurl + +```bash +mkdir -p ~/.config/nvim/{ftdetect,syntax} +cp ftdetect/hurl.vim ~/.config/nvim/ftdetect +cp syntax/hurl.vim ~/.config/nvim/syntax ``` + +## Configuration + +Activate syntax highlighting in your `~/.vimrc` or `~/.config/nvim/init.vim` + +```vim syntax on ``` - - - -