jnwhiteh/vim-golang — pull request #3 by mmorearty (2012-12-03 18:01:24+00:00)
Title: Use "//" instead of "/* */" for vim commentstring

Of course, both "//" and "/* */" can be used for comments in Go; but the nice thing about using "//" is that it plays more nicely with the "vim-commentary" plugin https://github.com/tpope/vim-commentary . Before this change, if you use vim-commentary and type, for example, `4\\\` to comment out four lines, the lines would be commented like this:

/* x := 3 */
/* if y == 4 { */
/* fmt.Println("y is 4") */
/* } */

After this change, they would be commented like this:

// x := 3
// if y == 4 {
// fmt.Println("y is 4")
// }