|
1 | 1 | " Vim filetype plugin file |
2 | | -" Language: Clojure |
3 | | -" Author: Meikel Brandmeyer <mb@kotka.de> |
| 2 | +" Language: Clojure |
| 3 | +" Author: Meikel Brandmeyer <mb@kotka.de> |
4 | 4 | " |
5 | | -" Maintainer: Sung Pae <self@sungpae.com> |
6 | | -" URL: https://github.com/guns/vim-clojure-static |
7 | | -" License: Same as Vim |
8 | | -" Last Change: %%RELEASE_DATE%% |
| 5 | +" Maintainer: Sung Pae <self@sungpae.com> |
| 6 | +" URL: https://github.com/guns/vim-clojure-static |
| 7 | +" License: Same as Vim |
| 8 | +" Last Change: %%RELEASE_DATE%% |
9 | 9 |
|
10 | 10 | if exists("b:did_ftplugin") |
11 | | - finish |
| 11 | + finish |
12 | 12 | endif |
13 | 13 | let b:did_ftplugin = 1 |
14 | 14 |
|
@@ -36,45 +36,45 @@ setlocal commentstring=;\ %s |
36 | 36 | " 'completefunc' so that the user has some form of completion available when |
37 | 37 | " 'omnifunc' is set and no REPL connection exists. |
38 | 38 | for s:setting in ['omnifunc', 'completefunc'] |
39 | | - if exists('&' . s:setting) && empty(eval('&' . s:setting)) |
40 | | - execute 'setlocal ' . s:setting . '=clojurecomplete#Complete' |
41 | | - let b:undo_ftplugin .= ' | setlocal ' . s:setting . '<' |
42 | | - endif |
| 39 | + if exists('&' . s:setting) && empty(eval('&' . s:setting)) |
| 40 | + execute 'setlocal ' . s:setting . '=clojurecomplete#Complete' |
| 41 | + let b:undo_ftplugin .= ' | setlocal ' . s:setting . '<' |
| 42 | + endif |
43 | 43 | endfor |
44 | 44 |
|
45 | 45 | " Take all directories of the CLOJURE_SOURCE_DIRS environment variable |
46 | 46 | " and add them to the path option. |
47 | 47 | " |
48 | 48 | " This is a legacy option for VimClojure users. |
49 | 49 | if exists('$CLOJURE_SOURCE_DIRS') |
50 | | - for s:dir in split($CLOJURE_SOURCE_DIRS, (has("win32") || has("win64")) ? ';' : ':') |
51 | | - let s:dir = fnameescape(s:dir) |
52 | | - " Whitespace escaping for Windows |
53 | | - let s:dir = substitute(s:dir, '\', '\\\\', 'g') |
54 | | - let s:dir = substitute(s:dir, '\ ', '\\ ', 'g') |
55 | | - execute "setlocal path+=" . s:dir . "/**" |
56 | | - endfor |
57 | | - let b:undo_ftplugin .= ' | setlocal path<' |
| 50 | + for s:dir in split($CLOJURE_SOURCE_DIRS, (has("win32") || has("win64")) ? ';' : ':') |
| 51 | + let s:dir = fnameescape(s:dir) |
| 52 | + " Whitespace escaping for Windows |
| 53 | + let s:dir = substitute(s:dir, '\', '\\\\', 'g') |
| 54 | + let s:dir = substitute(s:dir, '\ ', '\\ ', 'g') |
| 55 | + execute "setlocal path+=" . s:dir . "/**" |
| 56 | + endfor |
| 57 | + let b:undo_ftplugin .= ' | setlocal path<' |
58 | 58 | endif |
59 | 59 |
|
60 | 60 | " Skip brackets in ignored syntax regions when using the % command |
61 | 61 | if exists('loaded_matchit') |
62 | | - let b:match_words = &matchpairs |
63 | | - let b:match_skip = 's:comment\|string\|regex\|character' |
64 | | - let b:undo_ftplugin .= ' | unlet! b:match_words b:match_skip' |
| 62 | + let b:match_words = &matchpairs |
| 63 | + let b:match_skip = 's:comment\|string\|regex\|character' |
| 64 | + let b:undo_ftplugin .= ' | unlet! b:match_words b:match_skip' |
65 | 65 | endif |
66 | 66 |
|
67 | 67 | " Win32 can filter files in the browse dialog |
68 | 68 | if has("gui_win32") && !exists("b:browsefilter") |
69 | | - let b:browsefilter = "Clojure Source Files (*.clj)\t*.clj\n" . |
70 | | - \ "ClojureScript Source Files (*.cljs)\t*.cljs\n" . |
71 | | - \ "Java Source Files (*.java)\t*.java\n" . |
72 | | - \ "All Files (*.*)\t*.*\n" |
73 | | - let b:undo_ftplugin .= ' | unlet! b:browsefilter' |
| 69 | + let b:browsefilter = "Clojure Source Files (*.clj)\t*.clj\n" . |
| 70 | + \ "ClojureScript Source Files (*.cljs)\t*.cljs\n" . |
| 71 | + \ "Java Source Files (*.java)\t*.java\n" . |
| 72 | + \ "All Files (*.*)\t*.*\n" |
| 73 | + let b:undo_ftplugin .= ' | unlet! b:browsefilter' |
74 | 74 | endif |
75 | 75 |
|
76 | 76 | let &cpo = s:cpo_save |
77 | 77 |
|
78 | 78 | unlet! s:cpo_save s:setting s:dir |
79 | 79 |
|
80 | | -" vim:sts=4 sw=4 et: |
| 80 | +" vim:sts=8:sw=8:ts=8:noet |
0 commit comments