开发者

Vimclojure bracket completion is driving me insane

开发者 https://www.devze.com 2023-02-08 10:43 出处:网络
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.

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.


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

Sorry for the dumb question.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号