diff options
Diffstat (limited to 'vim/bundle/slimv/indent')
-rw-r--r-- | vim/bundle/slimv/indent/clojure.vim | 23 | ||||
-rw-r--r-- | vim/bundle/slimv/indent/lisp.vim | 30 | ||||
-rw-r--r-- | vim/bundle/slimv/indent/scheme.vim | 23 |
3 files changed, 76 insertions, 0 deletions
diff --git a/vim/bundle/slimv/indent/clojure.vim b/vim/bundle/slimv/indent/clojure.vim new file mode 100644 index 0000000..3b9e4fe --- /dev/null +++ b/vim/bundle/slimv/indent/clojure.vim @@ -0,0 +1,23 @@ +" clojure.vim: +" Clojure indent plugin for Slimv +" Version: 0.9.5 +" Last Change: 21 Feb 2012 +" Maintainer: Tamas Kovacs <kovisoft at gmail dot com> +" License: This file is placed in the public domain. +" No warranty, express or implied. +" *** *** Use At-Your-Own-Risk! *** *** +" +" ===================================================================== +" +" Load Once: +if exists("b:did_indent") || exists("g:slimv_disable_clojure") + finish +endif + +runtime indent/**/lisp.vim + +setlocal nolisp +setlocal autoindent +setlocal expandtab +setlocal indentexpr=SlimvIndent(v:lnum) + diff --git a/vim/bundle/slimv/indent/lisp.vim b/vim/bundle/slimv/indent/lisp.vim new file mode 100644 index 0000000..9723d69 --- /dev/null +++ b/vim/bundle/slimv/indent/lisp.vim @@ -0,0 +1,30 @@ +" lisp.vim: +" Lisp indent plugin for Slimv +" Version: 0.9.5 +" Last Change: 21 Feb 2012 +" Maintainer: Tamas Kovacs <kovisoft at gmail dot com> +" License: This file is placed in the public domain. +" No warranty, express or implied. +" *** *** Use At-Your-Own-Risk! *** *** +" +" ===================================================================== +" +" Load Once: +if exists("b:did_indent") + finish +endif + +" Handle cases when lisp dialects explicitly use the lisp indent plugins +if &ft == "clojure" && exists("g:slimv_disable_clojure") + finish +endif + +if &ft == "scheme" && exists("g:slimv_disable_scheme") + finish +endif + +setlocal nolisp +setlocal autoindent +setlocal expandtab +setlocal indentexpr=SlimvIndent(v:lnum) + diff --git a/vim/bundle/slimv/indent/scheme.vim b/vim/bundle/slimv/indent/scheme.vim new file mode 100644 index 0000000..90be432 --- /dev/null +++ b/vim/bundle/slimv/indent/scheme.vim @@ -0,0 +1,23 @@ +" scheme.vim: +" Scheme indent plugin for Slimv +" Version: 0.9.5 +" Last Change: 21 Feb 2012 +" Maintainer: Tamas Kovacs <kovisoft at gmail dot com> +" License: This file is placed in the public domain. +" No warranty, express or implied. +" *** *** Use At-Your-Own-Risk! *** *** +" +" ===================================================================== +" +" Load Once: +if exists("b:did_indent") || exists("g:slimv_disable_scheme") + finish +endif + +let b:did_indent = 1 + +setlocal nolisp +setlocal autoindent +setlocal expandtab +setlocal indentexpr=SlimvIndent(v:lnum) + |