1
0
mirror of https://github.com/golang/go synced 2024-11-22 07:54:40 -07:00
go/misc/vim/indent
David Symonds 1a7d09c847 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
2011-05-13 08:29:44 -07:00
..
go.vim misc/vim: new Vim indentation script. 2011-05-13 08:29:44 -07:00