]> Cypherpunks repositories - gostls13.git/commit
misc/vim: new Vim indentation script.
authorDavid Symonds <dsymonds@golang.org>
Fri, 13 May 2011 15:29:44 +0000 (08:29 -0700)
committerDavid Symonds <dsymonds@golang.org>
Fri, 13 May 2011 15:29:44 +0000 (08:29 -0700)
commit1a7d09c847b27390c304a34a80ae4dfebc104662
tree54903ee2472e56b8a8e2ee6d9d315e23546559ea
parent092f34feca489bb6b873281b7484522eb574fe9d
misc/vim: new Vim indentation script.

This uses a fully custom function for indenting Go code in Vim.
It provides a lot more flexibility than a cindent-based approach,
so this version gets the := operator correct, as well as switch
labels and jump labels.

One outstanding TODO is to handle lines immediately after jump labels.

R=adg, n13m3y3r, jnwhiteh, dchest, rsc, rlight2
CC=golang-dev, rivercheng
https://golang.org/cl/4534047
misc/vim/indent/go.vim