jenchik / golang

Automatically exported from code.google.com/p/golang
0 stars 0 forks source link

Go file type detection for Vim does not work following provided instructions in recent Ubuntu versions #4

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

1. Follow instructions at top of misc/vim/readme.txt to setup Go plugins for 
Vim by adding several lines to ~/.vimrc
2. Restart Vim
3. Edit any *.go file in Vim

What is the expected output? What do you see instead?

I expect that the filetype is detected as 'go' and appropriate syntax 
highlighting is used.

Instead the filetype is not automatically detected, though manually setting it 
via 'set ft=go' works.

What version of the product are you using? On what operating system?

Ubuntu 12.04.  Recent Go trunk build.

Please provide any additional information below.

This appears to be caused by 
https://bugs.launchpad.net/ubuntu/+source/vim/+bug/572627 - uncommenting the 
'syntax on' line in /etc/vim/vimrc fixes the problem.

This issue is not Go's fault, but we could user confusion by documenting it 
(via this bug if nothing else).

Original issue reported on code.google.com by robertkn...@gmail.com on 5 May 2012 at 3:59

GoogleCodeExporter commented 8 years ago
Realized this is the wrong bug tracker.  The issue was already filed in the 
correct place at http://code.google.com/p/go/issues/detail?id=3308

Original comment by robertkn...@gmail.com on 5 May 2012 at 4:01