aboutsummaryrefslogtreecommitdiff
path: root/vim-snug/ftplugin/snug.vim
blob: c385573a69c09dc2ff41a3f25e45f292090fca26 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
" Vim plugin for snug development
" Language:    Snug functional programing language
" Maintainer:  Camil Staps <info@camilstaps.nl>
" License:     This file is placed in the public domain.

if exists("b:did_ftplugin")
  finish
endif
let b:did_ftplugin = 1

let s:cpo_save = &cpo
set cpo&vim

let b:undo_ftplugin = "setlocal com< cms< fo< sua<"

setlocal comments=sr:(#,m:\ ,ex:#)
setlocal commentstring=(#\ %s\ #)

setlocal formatoptions-=t formatoptions+=cro

setlocal suffixesadd=.snug

let &cpo = s:cpo_save
unlet s:cpo_save

" vim: expandtab shiftwidth=2 tabstop=2