1
0
mirror of https://github.com/golang/go synced 2024-11-18 03:34:42 -07:00
go/misc/vim/ftdetect
Paul Sbarra 41f4ba3ae5 vim: fix go filetype detection
The filetype needs to be set during BufRead in order for the did_filetype() check to prevent the file being detected as a conf file.  One example where this can occur is if a cgo file has a #include at the top of the file.  The # is detected in vim's generic configuration (conf file) toward the bottom of filetype.vim

R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/5496066
2011-12-19 10:42:32 +11:00
..
gofiletype.vim vim: fix go filetype detection 2011-12-19 10:42:32 +11:00