derekwyatt/vim-scala — pull request #11 by mmorearty (2012-10-19 20:37:58+00:00)
Title: Use "//" instead of "/* */" for vim commentstring

Of course, both "//" and "/* */" can be used for comments in Scala; 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, "3\\\" to comment out three lines, the lines would be commented like this:

/* val x = 3 */
/* if (y == 4) */
/* println("y is 4") */

After this change, they would be commented like this:

// val x = 3
// if (y == 4)
// println("y is 4")

Note, by default, for Java files, Vim already uses "//" for comments.