summaryrefslogtreecommitdiffstats
path: root/ftplugin/systemd.vim
blob: f6500b14991e4887a345634ce4c1a3669634991c (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
if polyglot#init#is_disabled(expand('<sfile>:p'), 'systemd', 'ftplugin/systemd.vim')
  finish
endif

" Vim filetype plugin file
" Language:             systemd unit files
" Previous Maintainer:  Will Woods <wwoods@redhat.com>
" Latest Revision:      Sep 25, 2019

" These are, as it turns out, exactly the same settings as ftplugin/conf.vim

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

let s:cpo_save = &cpo
set cpo&vim

let b:undo_ftplugin = "setl com< cms< fo<"

setlocal comments=:# commentstring=#\ %s formatoptions-=t formatoptions+=croql

let &cpo = s:cpo_save
unlet s:cpo_save