5 ms·
Same with vim (and other text editors), at first I started customizing heavily. Now I can get going with just 3 settings. syntax on set number set
by jrimbault 9y ago
Same with vim (and other text editors), at first I started customizing heavily. Now I can get going with just 3 settings.
syntax on
set number
set relativenumber
- weaksauce 9y agoAs a long time vim user and lover of the idea of vim. emacs is better at being a vim than vim is. (org, magit, helm, swoop, and all the other great packages are a bonus and work as well as they do because of the way emacs was created.) vim modal editing is life but vim's implementation is really bad comparatively.
- habibalamin 9y agoWhich modal editing implementation would you suggest for Emacs?
- monsieurbanana 9y agoThere's no really much choice here if you want to have VIM modal editing in emacs: you need to use Evil. The question is rather, - do you want to start an emacs config from scratch (then you install and configure whatever plugins you want, including Evil) - or go for one of the community managed ones? The most popular being spacemacs[1], but there's also doom-emacs[2], both are geared towards people that come from VIM and/or want to use VIM-like editing in emacs [1] http://spacemacs.org/ http://spacemacs.org/ [2] https://github.com/hlissner/doom-emacs https://github.com/hlissner/doom-emacs
- weaksauce 9y agoI personally use spacemacs with a bunch of layers enabled. It uses evil mode for vim emulation.
- falcolas 9y agoI have to disagree. Evil mode in emacs is (on the scale of vim clones) pretty good, but it is still an emulation of vim within emacs, and there are a lot of hard stops throughout the experience for a long time vim user. The biggest hard stop for me was the implementation of C-[, which interpreted word boundaries differently than vim - differently than emacs even. Of course, if all you're looking for is modal editing in emacs and don't mind falling back to emacs keybinds, then evil mode will do just fine for you.
- arnsholt 9y agoI had a similar issue when I had to work in Emacs too. Evil is, on the whole a good emulation, but I kept tripping over ^W not doing what I expected. And then if I messed up the undoing, I got to screw around with Emacs' redo functionality being... idiosyncratic.
- weaksauce 9y agoYou can change word boundaries pretty easily though. There is a little bit of friction in some things like that but nothing that is insurmountable. Every single keystroke is a function that can be changed and even wrapped with "advice" to leave the function alone but change the before, after, or both before and after the function is called.
- flukus 9y agoI've invested a great deal of time getting plugins to work, scripting my own, customizing every aspect of vim but I really wish I listened to the people saying all along that "vim is the text editor, unix is the IDE". Since I started following this advice I haven't looked back. The two main reasons I ignored this advice initially is that I was mainly on windows and that vim has some great windowing abilities. I knew about cygwin as an answer to the first but I didn't know about tmux previously, perhaps I didn't need to know because vim already had a similar feature set. Nowadays my vim setup is almost as minimal as yours.
- jrimbault 9y ago"I can get going", emphasis on "can" ;) I usually have more settings, but on a temp machine that's all I need.
- yosamino 9y ago> set relativenumber why thank you!
- kazinator 9y agoI didn't know about that either. What's this good for? One immediately obvious use is basic navigation. That line above I want to go to is 13, so '13k'. Now I'm there.
- liveoneggs 9y agoI wanted to add the few that I like but I think they're all defaults now :) set ruler set wildmenu set showcmd set scrolloff=4