Vim 9.0 on Unix

  1. Install odin.vim
    $ mkdir -pv ~/.vim/pack/plugins/start
    $ cd ~/.vim/pack/plugins/start
    start$ git clone https://github.com/Tetralux/odin.vim.git
  2. Build odinfmt from the Odin Language Server:
    odin-stuff$ git clone https://github.com/DanielGavin/ols.git
    odin-stuff$ cd ols
    ols$ sh -x odinfmt.sh
  3. Add a nice color scheme and a formatting key to your ~/.vimrc:
    au BufNewFile,BufRead *.odin colorscheme takodachi
    au BufNewFile,BufRead *.odin map <C-P> :w<Return>:%!path/to/odinfmt %<Return>

Don't have a nice color scheme?

$ mkdir -pv ~/.vim/colors
$ wget -O ~/.vim/colors/takodachi.vim https://raw.githubusercontent.com/mildewchan/takodachi.vim/master/colors/takodachi.vim

I want more features or other editors

Take a look at https://github.com/DanielGavin/ols's README