haldis/etc/vim
Midgard d0699b3716
HLDS: change :: to double space and require it
Require double space before tags and price, like in the plain text
accounting format of ledger. This makes it easier to differentiate
between prices mentioned in descriptions and the price for the dish.
2021-06-20 23:57:50 +02:00
..
ftdetect.vim Add initial HLDS highlighting for Vim 2020-01-24 01:32:19 +01:00
ftplugin.vim HLDS: change :: to double space and require it 2021-06-20 23:57:50 +02:00
indent.vim Add README for Vim support 2020-01-24 02:08:54 +01:00
README.md Add README for Vim support 2020-01-24 02:08:54 +01:00
syntax.vim HLDS: change :: to double space and require it 2021-06-20 23:57:50 +02:00

HLDS support in Vim

Add syntax highlighting for HLDS, the Haldis Language for Describing Servings, to your editor!

Installation

Install these files as

  • ftdetect/hlds.vim
  • ftplugin/hlds.vim
  • syntax/hlds.vim
  • indent/hlds.vim

in your Vim runtime directory.

For example if you're using a *NIX such as Linux or macOS:

for kind in ftdetect ftplugin syntax indent; do
	mkdir -p ~/.vim/$kind
	cp $PWD/$kind.vim ~/.vim/$kind/hlds.vim
done

If you use Neovim instead of Vim:

for kind in ftdetect ftplugin syntax indent; do
	mkdir -p ~/.config/nvim/$kind
	cp $PWD/$kind.vim ~/.config/nvim/$kind/hlds.vim
done

If you want to use the latest version, you can create symlinks instead of copying by substituting ln -s for cp.

Restart Vim to enable support for HLDS.