Debian Codegraph @

share/vim/ftplugin/modulefile.vim

raw
1 " Vim filetype plugin file
2 " Language: Tcl Modulefile
3 " Maintainer: Xavier Delaruelle <[email protected]>
4 " Original: Felix Neumärker <[email protected]>
5 " Reference: https://modules.readthedocs.io/en/latest/modulefile.html
6
7 if exists("b:did_modulefile_ftplugin")
8 finish
9 endif
10 let b:did_modulefile_ftplugin = 1
11
12 set syntax=modulefile
13
14 " adopted from tcl ftplugin:
15 let s:cpo_save = &cpo
16 set cpo-=C
17
18 setlocal comments=:#
19 setlocal commentstring=#%s
20 setlocal formatoptions+=croql
21
22 " Undo the stuff we changed.
23 let b:undo_ftplugin = "setlocal fo< com< cms< inc< inex< def< isf< kp<" .
24 \ " | unlet! b:browsefilter"
25
26 " Restore the saved compatibility options.
27 let &cpo = s:cpo_save
28 unlet s:cpo_save
29
30 " vim:set tabstop=4 shiftwidth=4 expandtab textwidth=100: