commit | 1a7d09c847b27390c304a34a80ae4dfebc104662 | [log] [tgz] |
---|---|---|
author | David Symonds <dsymonds@golang.org> | Fri May 13 08:29:44 2011 -0700 |
committer | David Symonds <dsymonds@golang.org> | Fri May 13 08:29:44 2011 -0700 |
tree | 54903ee2472e56b8a8e2ee6d9d315e23546559ea | |
parent | 092f34feca489bb6b873281b7484522eb574fe9d [diff] |
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