Descriptionvim: 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
Patch Set 1 #Patch Set 2 : diff -r 0c39eee85b0d https://go.googlecode.com/hg/ #Patch Set 3 : diff -r 15b63cc10b22 https://go.googlecode.com/hg/ #MessagesTotal messages: 3
|