summaryrefslogtreecommitdiffstats
path: root/indent/swift.vim
blob: 472b3cf7d62fa5b4395d3ee7aacdb281b5777920 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'swift') == -1
  
" Language:    Swift<https://developer.apple.com/swift/>
" Maintainer:  toyama satoshi <toyamarinyon@gmail.com>
" URL:         http://github.com/toyamarinyon/vim-swift
" License:     GPL

" Only load this indent file when no other was loaded.
if exists("b:did_indent")
   finish
endif
let b:did_indent = 1

" C indenting is built-in, thus this is very simple
setlocal cindent

let b:undo_indent = "setl cin<"

endif