2013-04-03 156 views
1

我最近在我的mac osx下载了vim的paredit插件。我将paredit.vim放入我的〜/ .vim目录中。在Mac OSX上安装Paredit vim插件

的文档说:

When you enter a '(' then a matching ')' is automatically inserted. 
If needed, spaces before and/or after the '()' pair are added. 
... 
Paredit mode is set by default for .lisp, .cl, .clj, cljs, .scm and .rkt files, 
but it is possible to switch it off by putting the following statement in the 
.vimrc file: 

然而,当我打开VIM并输入 “(” 没有结束 “)” 插入。还有什么额外的我需要做的?

+0

我没有得到它,开始插入关闭 “(” 把此行中我的.vimrc'AU BufNewFile,BufRead *等后.clj调用PareditInitBuffer()'但仍然没有关闭[或{ – 2013-04-03 22:13:36

回答

1

这没有为它.clj文件

syntax on 
au BufNewFile,BufRead *.clj setfiletype clojure 
au BufNewFile,BufRead *.clj call PareditInitBuffer()