Avoid expanding tabs to spaces for Golang files

* `noexpandtab` will ensure tabs are used instead of staces when tabbing
or auto-indenting.
* `softtabstop=2` isn't needed because we are already setting
`tabstop=2` in our `.vimrc`.
This commit is contained in:
Greg Lazarev 2016-03-30 17:23:07 -07:00 committed by Geoff Harcourt
parent 3d867615a1
commit f25b410bba

View file

@ -1,6 +1,6 @@
let g:go_fmt_command = "goimports"
setlocal softtabstop=2
setlocal listchars=tab:\ \ ,trail,nbsp
setlocal noexpandtab
compiler go