Skip to content

Commit

Permalink
Updating with explanation of adding syntax coloring for vim (#168)
Browse files Browse the repository at this point in the history
* Updating with explanation of adding syntax coloring for vim

* Update vim/README.md

Co-authored-by: Florian Loitsch <florian@loitsch.com>

* Readding ftdetect

Co-authored-by: Florian Loitsch <florian@loitsch.com>
  • Loading branch information
mmedum and floitsch authored Dec 20, 2021
1 parent 703902f commit 385246f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions vim/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,18 @@ Alternatively, if you are using Vim 8 or newer you can recursively
copy this directory to a $HOME/.vim/pack/toit/start/toit directory
so that this file appears as $HOME/.vim/pack/toit/start/toit/README.md

Syntax highlighting
===================

Create a folder called `syntax` in the location of your vim/neovim installation,
copy `syntax/toit.vim` to that folder and add the following to your `.vimrc` or `init.vim` file:

```
au! BufNewFile,BufReadPost *.{toit} set filetype=toit
```

This will enable syntax highlighting in vim/neovim.

Language Server
===============

Expand Down

0 comments on commit 385246f

Please sign in to comment.