News for hackers. Stuff that matters.
Re:Clojure Hills of Abstraction by sreque on Friday September 02, 2011 @06:10PM (#2955790)
For me a major hill to overcome for learning any Lisp is Emacs. I've used Vim all my life, but I haven't found any way to make it "S-expression aware" the way emacs is. In emacs, I can navigate and manipulate the code based on S-expressions. I can move, cut, and select up, down, left, and right. In DrRacket I also know how to do things like rotate s-expressions and move an s-expression outside.

Since I've always felt that Vim is inferior for Lisp development, I try to use Emacs. Unfortunately, I feel a million times slower in Emacs than Vim simply because I've used vim for years.

I feel like, if I wanted to feel comfortable coding in any Lisp, I would have to code non-stop in an Emacs-like environment for a year, and I haven't had the discipline to do that yet. Does anyone know how to make Vim comparable to Emacs in this regard?

Re:Clojure Hills of Abstraction by swannodette on Friday September 02, 2011 @06:18PM (#2955814)
Re:Clojure Hills of Abstraction by irahul on Saturday September 03, 2011 @03:37AM (#2956778)
VimClojure doesn't have any s-expr manipulating shortcuts, does it?
Re:Clojure Hills of Abstraction by chapmanb on Friday September 02, 2011 @07:25PM (#2955978)
I had the same struggle and originally used viper-mode + vimpulse to ease the transition. Recently I've switched to Evil, which is excellent and requires very little configuration to give you vim-like navigation with all the other good things in emacs: http://www.emacswiki.org/emacs/Evil
Re:Clojure Hills of Abstraction by ehsanu1 on Saturday September 03, 2011 @01:45AM (#2956602)
A useful reply for you has been inexplicably killed by someone. Here it is, reproduced for those without showdead on:

swannodette 5 hours ago | link [dead]

VimClojure, http://www.vim.org/scripts/script.php?script_id=2501 slimv, http://www.vim.org/scripts/script.php?script_id=2531 -----

Re:Clojure Hills of Abstraction by regularfry on Sunday September 04, 2011 @03:08AM (#2958994)
It doesn't take anywhere nearly a year to get that comfortable with emacs. I say this as someone who made the switch a couple of years ago - I was tolerably productive in a couple of days and pretty much at home in a week or so.

I made the switch because I wanted to be able to use SLIME, but it turns out that I'm not actually using Lisps that much day-to-day at the moment. I'm equally at home in both Vim and emacs now, it's not like you instantly forget how to ride that particular bike.

Re:Clojure Hills of Abstraction by lukeschlather on Friday September 02, 2011 @06:21PM (#2955820)
Have you played with viper-mode?
Re:Clojure Hills of Abstraction by sreque on Friday September 02, 2011 @06:30PM (#2955847)
I had a co-worker once that used Emacs and would always enable viper mode for me when I came to help him on his computer. Every time I used it, I always managed to break it or expose some way it didn't work! It left me with a bad impression, but I guess I could give it a try again.
Re:Clojure Hills of Abstraction by dupe123 on Friday September 02, 2011 @08:01PM (#2956053)
I definetely recommend viper mode. You'll have to install vimpulse also to make it really functional, but once you do that you should feel right at home. Just remember that ctrl-z toggles/untoggles it! So if you ever get into a non viper mode state, control+z should bring you back.

Personally I use it for all the modal editing goodness but I also rely on some emacs features as well such as ctrl-x ctrl-f for opening files, etc.

Re:Clojure Hills of Abstraction by doorhammer on Friday September 02, 2011 @11:25PM (#2956397)
This is the route I went while using Clojure. I also ended up learning more and more about how to customize emacs with elisp.

Vimpulse and viper got me close enough to vim where I could get things done, and learning more and more elisp, as I went along, allowed me to add or change anything that didn't feel right.