runtime/ftplugin/gitignore.vim @ObserverOfTime
runtime/ftplugin/gitrebase.vim @tpope
runtime/ftplugin/gitsendemail.vim @tpope
-runtime/ftplugin/gleam.vim @trilowy
+runtime/ftplugin/gleam.vim @kirillmorozov
runtime/ftplugin/go.vim @dbarnett
runtime/ftplugin/goaccess.vim @meonkeys
runtime/ftplugin/gomod.vim @yu-yk
" Vim filetype plugin file
-" Language: Gleam
-" Maintainer: Trilowy (https://github.com/trilowy)
-" Last Change: 2024 Oct 13
+" Language: Gleam
+" Maintainer: Kirill Morozov <kirill@robotix.pro>
+" Previous Maintainer: Trilowy (https://github.com/trilowy)
+" Last Change: 2025-04-12
if exists('b:did_ftplugin')
finish
setlocal comments=://,:///,:////
setlocal commentstring=//\ %s
+setlocal expandtab
+setlocal formatprg=gleam\ format\ --stdin
+setlocal shiftwidth=2
+setlocal softtabstop=2
-let b:undo_ftplugin = "setlocal comments< commentstring<"
+let b:undo_ftplugin = "setlocal com< cms< fp< et< sw< sts<"
" vim: sw=2 sts=2 et