Mercurial > vim
view runtime/ftplugin/go.vim @ 35717:99d97826842a
runtime(go): add recommended indent options to ftplugin
Commit: https://github.com/vim/vim/commit/3e07d5aef19ac34a61b9d58c2e0698351d392f52
Author: markmacode <code@mamo.aleeas.com>
Date: Tue Jul 16 21:20:34 2024 +0200
runtime(go): add recommended indent options to ftplugin
related: https://github.com/vim/vim/issues/15264
Signed-off-by: markmacode <code@mamo.aleeas.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Wed, 17 Jul 2024 08:14:01 +0200 |
parents | 1e8ebf870720 |
children |
line wrap: on
line source
" Vim filetype plugin file " Language: Go " Maintainer: David Barnett (https://github.com/google/vim-ft-go) " Last Change: 2014 Aug 16 " 2024 Jul 16 by Vim Project (add recommended indent style) if exists('b:did_ftplugin') finish endif let b:did_ftplugin = 1 setlocal formatoptions-=t setlocal comments=s1:/*,mb:*,ex:*/,:// setlocal commentstring=//\ %s let b:undo_ftplugin = 'setl fo< com< cms<' if get(g:, 'go_recommended_style', 1) setlocal noexpandtab softtabstop=0 shiftwidth=0 let b:undo_ftplugin ..= ' | setl et< sts< sw<' endif " vim: sw=2 sts=2 et