vim/bundle/alienscript/indent/alienscript.vim @ b44883779e1b bpollack/use-command-to-explicitly-call-ag-and-us-1442506830050

Close branch
author Steve Losh <steve@stevelosh.com>
date Thu, 17 Sep 2015 16:37:39 +0000
parents e5ca3773b0dd
children (none)
" For now we'll just use normal Lisp indenting because it's 1 AM and I want to
" go to bed.
"
" TODO: Steal VimClojure's magic indenting.

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

let s:save_cpo = &cpo
set cpo&vim

setlocal expandtab nosmartindent

setlocal softtabstop=2
setlocal shiftwidth=2

setlocal indentkeys=!,o,O

setlocal autoindent
setlocal indentexpr=
setlocal lisp

" Special words go here.
setlocal lispwords=def,fn,defn
setlocal lispwords+=if

" Custom:
" setlocal lispwords+=defn

let &cpo = s:save_cpo