gleam.vim (908B)
1 " Vim filetype plugin file 2 " Language: Gleam 3 " Maintainer: Kirill Morozov <kirill@robotix.pro> 4 " Previous Maintainer: Trilowy (https://github.com/trilowy) 5 " Based On: https://github.com/gleam-lang/gleam.vim 6 " Last Change: 2025 Apr 21 7 " 2026 Feb 13 by Vim Project (remove 'formatprg' #19108) 8 9 if exists('b:did_ftplugin') 10 finish 11 endif 12 let b:did_ftplugin = 1 13 14 setlocal comments=:////,:///,:// 15 setlocal commentstring=//\ %s 16 setlocal suffixesadd=.gleam 17 let b:undo_ftplugin = "setlocal com< cms< sua<" 18 19 if get(g:, "gleam_recommended_style", 1) 20 setlocal expandtab 21 setlocal shiftwidth=2 22 setlocal smartindent 23 setlocal softtabstop=2 24 setlocal tabstop=2 25 let b:undo_ftplugin ..= " | setlocal et< sw< si< sts< ts<" 26 endif 27 28 if !exists('current_compiler') 29 compiler gleam_build 30 let b:undo_ftplugin ..= "| compiler make" 31 endif 32 33 " vim: sw=2 sts=2 et