diff options
author | Nick Shipp <nick@shipp.ninja> | 2017-05-07 09:04:01 -0400 |
---|---|---|
committer | Nick Shipp <nick@shipp.ninja> | 2017-05-07 09:04:01 -0400 |
commit | c012f55efda29f09179e921cf148d79deb57616e (patch) | |
tree | ff0ad37f22622d51194cab192a2aa4b0106d7ad0 /vim/bundle/slimv/indent | |
parent | 4ca8f6608883d230131f8a9e8b6d6c091c516049 (diff) |
Much maturering of vim configs
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) + |