0

Hi Folks I'm using vimclojure for all my clojure programming needs.

Vimclojure automatically completes brackets for me and does not let me delete the ones I dont't want.

Here is a quick example:

The code I worte is the following:

(defn insert-foo [record]
    (sql/insert-records :test (concat {:id id} record)))

Now I see: "I forgot a sql/with-connection" statement here.

I try to insert it before the "sql/insert-records". Now I get this:

(defn insert-foo [record]
    (with-connection db) <-- This one I can't delete O.o
        (sql/insert-records :test (concat {:id id} record)))

And I can't delete the bracket in vim. It just won't let me. I tried "d,x,...". How can I delete this bracket or wrap an expression in brackets with vimclojure.

Kungi
  • 1,477
  • 1
  • 18
  • 34
  • My VimClojure doesn't do that. Could you please post the version of yours, and do a `grep -i vimclojure ~/.vimrc`. – mike3996 Feb 05 '11 at 08:30
  • I totally did not see the paredit plugin installed alongside with vimclojure ... I must have been blind yesterday – Kungi Feb 05 '11 at 09:48

1 Answers1

2

Actually I was kind of blind yesterday. I had paredit.vim installed alongside vimclojure wich caused the problem.

Sorry for the dumb question.

Kungi
  • 1,477
  • 1
  • 18
  • 34
  • Thank you very much! This was the case for me too, I was getting insane, I also searched issues for vim-clojure-static. Deleting the paredit.vim folder in my .vim/bundles folder helped :) – Simon Polak Oct 17 '14 at 15:55