4 ms·
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 e
by sreque 15y ago
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?
- swannodette 15y agoVimClojure, http://www.vim.org/scripts/script.php?script_id=2501 http://www.vim.org/scripts/script.php?script_id=2501 slimv, http://www.vim.org/scripts/script.php?script_id=2531 http://www.vim.org/scripts/script.php?script_id=2531
- irahul 15y agoVimClojure doesn't have any s-expr manipulating shortcuts, does it?
- lukeschlather 15y agoHave you played with viper-mode?
- sreque 15y agoI 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.
- dupe123 15y agoI 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.
- doorhammer 15y agoThis 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.
- chapmanb 15y agoI 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 http://www.emacswiki.org/emacs/Evil
- deleted 15y ago[deleted]
- ehsanu1 15y agoA 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 http://www.vim.org/scripts/script.php?script_id=2501 slimv, http://www.vim.org/scripts/script.php?script_id=2531 http://www.vim.org/scripts/script.php?script_id=2531 -----
- regularfry 15y agoIt 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.