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:
parent
3d867615a1
commit
f25b410bba
1 changed files with 1 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
|||
let g:go_fmt_command = "goimports"
|
||||
|
||||
setlocal softtabstop=2
|
||||
setlocal listchars=tab:\ \ ,trail:·,nbsp:·
|
||||
setlocal noexpandtab
|
||||
|
||||
compiler go
|
||||
|
|
Loading…
Add table
Reference in a new issue