code / vim-nomsu

Lines141 vim script136 Markdown5
(23 lines)
1 " Language: Nomsu
2 " Maintainer: Bruce Hill <bruce@bruce-hill.com>
3 " License: WTFPL
5 if exists("b:did_ftplugin")
6 finish
7 endif
8 let b:did_ftplugin = 1
10 setlocal formatoptions-=t
11 setlocal iskeyword+=$
12 setlocal cpoptions+=M
13 setlocal foldmethod=indent
14 setlocal formatprg=nomsu\ -t\ format\ -q\ -
15 setlocal expandtab
16 setlocal tabstop=4
17 setlocal shiftwidth=0
18 setlocal commentstring=//\ %s
19 normal zR
21 command! NomsuHideTests :g/^\s*test:$/exe "normal! jzc"
23 let b:undo_ftplugin = "setlocal formatoptions< iskeyword< cpoptions< foldmethod<"