Skip to content
This repository was archived by the owner on Oct 11, 2018. It is now read-only.

Commit d51c462

Browse files
committed
add information on Go HTML template
1 parent a21f628 commit d51c462

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ Tutorial for vim-go. A simple tutorial on how to install and use vim-go.
3434
14. [Generate it](#generate-it)
3535
* [Method stubs implementing an interface](#method-stubs-implementing-an-interface)
3636
15. [Share it](#share-it)
37+
16. [HTML template](#html-template)
3738

3839
# Quick Setup
3940

@@ -2175,6 +2176,16 @@ can manually set the browser via:
21752176
let g:go_play_browser_command = "chrome"
21762177
```
21772178

2179+
# HTML template
2180+
2181+
`vim-go` comes with syntax highlighting for Go HTML template. By default it
2182+
is enabled for `.tmpl` files. If you want to enable it for another filetype
2183+
add the following setting to your `.vimrc`:
2184+
2185+
```
2186+
au BufRead,BufNewFile *.gohtml set filetype=gohtmltmpl
2187+
```
2188+
21782189
# Donation
21792190

21802191
This tutorial was created by me in my spare time. If you like it and would

0 commit comments

Comments
 (0)