7 ms·
Towards a Vim-like Emacs
- carsongross 12y agoalt-x viper-mode You're welcome.
- pmoriarty 12y agoviper-mode is pretty outdated and broken in many ways. You should try evil-mode.[1] [1] - http://www.emacswiki.org/Evil http://www.emacswiki.org/Evil
- carsongross 12y agoHa! I haven't touched my .emacs since '98 when I left Cal and just keep trucking along w/ viper-mode. You kids and your fancy new stuff. :) I'll check it out.
- wging 12y agoI think that you are missing out on a whole lot more than evil-mode. Of the packages I use and love, most of these were written in the late 2000s or this decade and are still actively being changed. The consensus among those who would know seems to be that emacs development (construed broadly, to include the package ecosystem) is more active than ever.
- pcl 12y agoIf you wouldn't mind sharing your dot files, I'd love to take a look and see what's new.
- MichaelDickens 12y agoPrelude (https://github.com/bbatsov/prelude https://github.com/bbatsov/prelude) has a pretty nice set of basic dotfiles. I find that Emacs with Prelude is much more fun to use than vanilla Emacs.
- sjm 12y agoI recently overhauled my Emacs config — it's on github here: https://github.com/stafu/.emacs.d https://github.com/stafu/.emacs.d I'm using a package called use-package, which gets installed via MELPA if it isn't found on first run, then goes and installs and configures a bunch of other packages which will also download if needed. You can see how this works in the init-packages file: https://github.com/stafu/.emacs.d/blob/master/init/init-packages.el https://github.com/stafu/.emacs.d/blob/master/init/init-pack... Some of my favourite packages are magit (incredible interface to git - http://magit.github.io/ http://magit.github.io/), multiple-cursors (nice demo here: http://emacsrocks.com/e13.html http://emacsrocks.com/e13.html), expand-region (another nice demo: http://emacsrocks.com/e09.html http://emacsrocks.com/e09.html), and projectile (https://github.com/bbatsov/projectile https://github.com/bbatsov/projectile).
- tuhdo 12y agoIf you want to see what's new, check my guides: http://tuhdo.github.io/ http://tuhdo.github.io/ For example, you should take a look at Projectile and Helm Projectile: http://tuhdo.github.io/helm-projectile.html http://tuhdo.github.io/helm-projectile.html
- swartkrans 12y agoI also encourage people to use evil-leader with evil mode and check out other evil plugins, like the * to select all instances of the word under a cursor. Evil is very good, in some ways even better than vim, for example the live updating search and replace is pretty awesome.
- pmoriarty 12y agoIt's also programmed in a Lisp dialect by default, which is even more awesome.
- dima55 12y agoFrom the article: "Any time you are pressing two keys at once, with the same hand, hundreds of times per day, you are setting yourself up for repetitive stress injury" People: learn to type. One hand for the modifier key, and the other hand for the other key. This is why there are two sets of modifier keys. This is typing 101
- jdpage 12y agoIf you're on OS X, and you want to force yourself to learn to do this, there's a program called Karabiner[1] which lets you remap keys in advanced ways using an XML config. I have a config snippet[2] that I got from somewhere (sadly, I don't remember where) that remaps incorrect combinations of Shift and letters to be dead. You can do something similar with AutoHotKey on Windows, though I don't have a config for it. [1] https://pqrs.org/osx/karabiner/ https://pqrs.org/osx/karabiner/ [2] http://pastie.org/9708667 http://pastie.org/9708667
- rz2k 12y agoI use Karabiner and Seil which are great, but unless you are using an Apple keyboard with a numeric keyboard, you don't get a right-control key, which will matter for many of the most used commands for emacs. For me, when recently trying to remap the left-shift key I found out that it was not a problem for the supposed best practice of using it for C-g/x/c etc, but that instead I had been using a worse practice for typing ":" or """ when the wrong characters turned up al over the place. Anyway, I suppose the left option key would be pretty good to map to control for emacs, since it's rarely more needed than the right option key.
- ashi 12y agoJust use Karabiner to configure Return to do double duty as Right Control.
- ek750 12y agoTrue, the laptop and compact apple keyboard lack a right control. I've found that I use the right option key infrequently and use Karabiner to remap the option to control. It definitely helps with the RSI, and makes switching to someone else's machine frustrating :)
- argherna 12y agoWhat I don't get when vim|emacs user wants emacs|vim to act like vim|emacs. Why try to make one act like the other? Square peg, round hole.
- evmar 12y agoI wrote a post about the reasons why I switched (~10 years of vi, now ~5 years of emacs) here: http://evan-tech.livejournal.com/261214.html http://evan-tech.livejournal.com/261214.html I also use evil-mode.
- minikomi 12y agoI like editing in vim, but as I'm increasingly doing clojure(script) / racket I'm interested in using emacs for better integration.
- swah 12y agoI can tell you about emacs users: they like everything about emacs but their wrists hurting (IOW elisp is the perfect extension language created by our god rms and vimscript is garbage)
- andyl 12y agoI'm watching NeoVim - they seem to be making solid progress and hope it will give us a scriptable/embeddable vim. Would be great to have 1st-class scripting support for Python or Ruby.
- deleted 12y ago[deleted]
- bronson 12y agoLast I saw they were writing a VimL->Lua transcoder. I think they'll allow scripting in any language, but Lua will be the core language and have the best support. I donated to NeoVim few months ago and I'll donate again. Really wishing them success.
- EpicDavi 12y agoI read the title as "Toward a Vim: like Emacs"; was confused when the article was talking about making Emacs like Vim instead of vice versa :/
- yarrel 12y agoIf I want a modal editor, Vim is there. I don't want a modal editor. Breaking Emacs to make it more like Vi is cargo culting.
- MichaelDickens 12y agoWhat if you want an editor with a powerful customization language, sophisticated notetaking (org-mode), directory management (dired), as well as modal editing?
- tomsthumb 12y agouse evil or viper?
- Ar-Curunir 12y agoAnd that's what the link is about, isn't it?
- arnoooooo 12y agoIn my point of view, Emacs is a great platform with a bad editor interface, Vim is a bad platform with a perfect editing interface. Emacs having amazing extensibility, it makes perfect sense to me to give it a Vim-like interface.
- jaequery 12y agoI actually like the emacs key bindings.
- sjm 12y agoMe too! It's also nice that in OS X the basic set of Emacs bindings are built-in (movement and some manipulation, anyway).
- ch49 12y agoI like the emacs key bindings too, but many times I find myself reading the code with one hand used as a stand for my head. Vim's ease of movement across text is what I wish at such times. Of course evil mode come to rescue then, but I understand how so many people come to appreciate Vim's style so much over time. I am finding myself on the same path.
- erikb 12y agoI haven't seen any comment discussing it so here is kind of a vital question: Why would I want to do that? I don't need vim to me more configurable. Just a few weeks ago I looked into vim plugins for the third time into my vim history, but again I found it unnecesary. Most plugins don't improve at all what I want to do with vim. Examples: Prettier status line? Don't need it. Tree view of my project? Don't need it, or I use the shell command called tree. Autocomplete? I started learning the APIs of the tools I use because it makes my writing code better and much, much faster. Therefore I don't need that anymore. Git integration? Why would I want that? ":!git" is fine. The sorround plugin would be an idea, but it's key usage is strange in my eyes. Not spending this time into individualization and instead using this time to learn more about vim has significantly increased my code generation and allows me more easily to work on other systems with the same efficiency as on my own. If you have some real arguments for plugins I am really, really curious to learn what they are. But please consider before writing if spending the same time into learning how to solve your problem with vim capabilities would not be the better and faster approach.
- bad_user 12y agoAs both an Emacs and an IntelliJ IDEA user, I wouldn't mind the lack of autocomplete, but I do mind the lack of features for ... debugging, documentation and quickly jumping at definitions, including those in other people's projects that I import as dependencies. I ended up reading a lot of source-code that way. Emacs' ability to open REPLs and work with those, with a neat workflow (e.g. you edit text in your file, then press a shortcut to reload the REPL or maybe just send the expression under the cursor, is definitely nice, since it's very interactive). It's also nice to have good Git integration. I can select any fragment (like a function) and quickly go through its history. I cannot do that easily with ":!git". Emacs can also do a lot of things related to editing text. For example I use Org Mode for managing my tasks / TODO lists, whereas other people use Trello, or Google Keep, or EverNote or other apps that lock you in and that never do what they are supposed to do. A TODO list is a freaking text file and having the ability to manage that from within my favorite text editor is surely a win and hey, I can also synchronize that in the cloud. Because really - here it isn't Vim vs Emacs anymore, but Emacs versus your browser's TextArea. Get it?