Add Vim syntax highlighting section to README
@@ -123,6 +123,8 @@ Goby has official [docker image](https://hub.docker.com/r/gobylang/goby/) as wel
The Goby syntax is currently a subset of the Ruby one, with an exception (`get_block`), therefore, it's possible to attain syntax highlighting on any platform/editor by simply switching it to Ruby for the currently opened file.
+### Sublime Text 3
+
Sublime Text 3 users can use the `Only Goby` package, by typing the following in a terminal:
```sh
@@ -131,6 +133,18 @@ git clone git@github.com:saveriomiroddi/only-goby-for-sublime-text "$HOME/.confi
this will automatically apply the Goby syntax highlighting to the `.gb` files.
+### Vim
+
+Vim users can use the `vim-goby-syntax-highlighting` definition, by typing the following in a terminal:
+
+```sh
+mkdir -p "$HOME/.vim/syntax"
+wget -O "$HOME/.vim/syntax/goby.vim" https://raw.githubusercontent.com/saveriomiroddi/vim-goby-syntax-highlighting/master/goby.vim
+echo 'au BufNewFile,BufRead *.gb setf goby' >> "$HOME/.vim/filetype.vim"
+```
+
+this will automatically apply the Goby syntax highlighting to the `.gb` files.
+
## Sample codes
- [Built a stack data structure using Goby](https://github.com/goby-lang/goby/blob/master/samples/stack.gb)
