4

In vim, my bindings of the let statement are not properly indent. I get this:

(let [language :clojure
               editor :vim]
  "indentation problems")

I would like to have editor aligned with language, like this:

(let [language :clojure
      editor :vim]
  "indentation problems")

What should I do?

viebel
  • 19,372
  • 10
  • 49
  • 83
  • Have you tried any plugins yet? [This](http://www.vim.org/scripts/script.php?script_id=2501) claims to 'support indentation' though I can't vouch for it doing what you need. – Edd Steel Feb 23 '12 at 22:29

1 Answers1

7

Since I'm the author of the plugin mentioned in the comment by @edd-steel I can confirm that it does what you need.

kotarak
  • 17,099
  • 2
  • 49
  • 39
  • I am using vimclojure but I get the wrong indentation. Do I have to do something special? I indent using `=`. – viebel Feb 24 '12 at 10:54
  • 4
    @YehonathanSharvit You have to turn indentation on. `filetype plugin indent on` This is independent of vimclojure. Please refer to the extensive vim documentation for more information on filetype plugins. If the setup according to the documentation is correct, but it still doesn't work, please ask on the vimclojure google group for support. – kotarak Feb 24 '12 at 13:48