~gpanders/dotfiles

f626727fa3482fd5a2731eb3f7351258924c119e — Greg Anders 1 year, 10 months ago eb18522
Use tabs in go files (as per gofmt)
1 files changed, 7 insertions(+), 1 deletions(-)

M vim/.vim/after/ftplugin/go.vim
M vim/.vim/after/ftplugin/go.vim => vim/.vim/after/ftplugin/go.vim +7 -1
@@ 3,7 3,13 @@

let b:undo_ftplugin = get(b:, 'undo_ftplugin', '')

setlocal noexpandtab
setlocal shiftwidth=8
setlocal softtabstop=8

let b:undo_ftplugin .= '|setl et< sw< sts<'

if executable('gofmt')
    setlocal formatprg=gofmt
    let b:undo_ftplugin .= '|setl fp<'
    let b:undo_ftplugin .= ' fp<'
endif