From c012f55efda29f09179e921cf148d79deb57616e Mon Sep 17 00:00:00 2001 From: Nick Shipp Date: Sun, 7 May 2017 09:04:01 -0400 Subject: Much maturering of vim configs --- vim/bundle/slimv/indent/clojure.vim | 23 +++++++++++++++++++++++ vim/bundle/slimv/indent/lisp.vim | 30 ++++++++++++++++++++++++++++++ vim/bundle/slimv/indent/scheme.vim | 23 +++++++++++++++++++++++ 3 files changed, 76 insertions(+) create mode 100644 vim/bundle/slimv/indent/clojure.vim create mode 100644 vim/bundle/slimv/indent/lisp.vim create mode 100644 vim/bundle/slimv/indent/scheme.vim (limited to 'vim/bundle/slimv/indent') 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 +" 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 +" 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 +" 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) + -- cgit v1.2.3-70-g09d2