Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

slimv.vim:: Invalid auto insert parentheses

Tags:

vim

clojure

slimv

I'm using clojure in MacVim with slimv.vim.

But when I start to write some clojure code my indent does not look good. It looks like this:

(def a
    (println "hello") 
     )

It makes me a little confused. I want to invalid auto insert parentheses. Do you have any idea?

Thanks in advance.

like image 477
nobinobiru Avatar asked Jul 20 '12 16:07

nobinobiru


1 Answers

Arthur already described ,(. Besides that you can turn off paredit globally in your .vimrc (let g:paredit_mode=0).

But if what you don't like is 'electric return' (i.e. there's an extra newline inserted before the closing paren), then you can disable it via let g:paredit_electric_return=0. Electric returns are gathered if you press ) at the end of the line. So if you press ) after (println "hello") then the next closing paren will jump up producing: (println "hello")).

like image 171
Tamas Kovacs Avatar answered Oct 17 '22 20:10

Tamas Kovacs