TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Emacs and Vim

221 点作者 mklappstuhl将近 11 年前

34 条评论

Gonzih将近 11 年前
Wanna have fun with emacs? Try to integrate evil mode nicely in different plugins. Especially if you use totally different key bindings in vi (non qwerty layout for example). It was very painful experience for me. Yes, vim is far from ideal, yes neo-vim is looking like to be next iteration in vim evolution, yes no parallel tasks execution is pain. But at the same time there is vimproc. For clojure integration there is fireplace.vim which is also amazing in my opinion, for git there is fugitive. I don't see any real comparison in this post, more like "I was bored with vim, now I use emacs".
评论 #8088098 未加载
评论 #8085742 未加载
评论 #8089554 未加载
评论 #8087829 未加载
评论 #8087200 未加载
asuffield将近 11 年前
Gah, the tutorial keybindings! They are mad. I&#x27;ve been using emacs for a very long time, and I can&#x27;t imagine using those to navigate. Emacs has perfectly reasonable default keybindings these days, they just aren&#x27;t the ones mentioned in the tutorial.<p>Command: move down one line<p>What vi uses: j<p>What the emacs tutorial suggests: C-n<p>What I use in emacs: the down arrow
评论 #8084548 未加载
评论 #8084606 未加载
评论 #8084800 未加载
评论 #8085350 未加载
评论 #8084544 未加载
评论 #8087557 未加载
评论 #8088526 未加载
评论 #8089145 未加载
评论 #8088368 未加载
评论 #8089210 未加载
orthecreedence将近 11 年前
Emacs + evil, sure, but <i>please</i> don&#x27;t forget vim + slimv. I tried emacs for a bit when I was first jumping into lisp, but was also evaluating vim at the same time. After about 6 weeks I was having <i>fun</i> with vim. About a year later, I was really fast in vim. Fast forward another year or two, I think in vim. There are no modes or movements or searches. There&#x27;s just what&#x27;s in my brain and it sort of writes itself. Granted, I&#x27;ll stop and think to record macros here and there, but otherwise it&#x27;s all really fluid. Add the fact that I do lots of server admin to the mix, and heyyyy there&#x27;s vim already there. How ya doing ol&#x27; buddy?<p>Then you add slimv to the mix. Honestly I never gave slime a fair shake. I barely scratched the surface. But once I got slimv up and running, I felt like I didn&#x27;t need to learn emacs+slime. Maybe there are some things I don&#x27;t know about that I&#x27;m missing out on, but slimv, like vim, let&#x27;s me think in lisp.<p>So if you&#x27;re a lisper and you like vim, don&#x27;t jump ship yet! Give slimv a shot.
评论 #8089002 未加载
cies将近 11 年前
Emacs+Evil is the next Vim.<p>And yes, CtrlP is probably the thing you&#x27;ll miss most.<p>But all the other things I got from switching from Vim to Emacs+Evil easily outweigh the missing CtrlP.<p>Vim was great, until I wanted to customize it heavily. It is simply not made to facilitate things like: child processes, SSH, understanding my code, a visual interface for Git.
评论 #8085756 未加载
评论 #8087820 未加载
评论 #8085058 未加载
评论 #8084634 未加载
评论 #8084794 未加载
评论 #8085126 未加载
评论 #8088738 未加载
评论 #8088542 未加载
评论 #8086970 未加载
评论 #8085402 未加载
评论 #8084787 未加载
评论 #8085193 未加载
评论 #8084965 未加载
athenot将近 11 年前
Whether it&#x27;s vim or emacs, I&#x27;ve always been amazed how these tools can become an extension of the brain like an instrument whose purpose is to materialize a thought process. Framed that way, the editor wars look like a pianist debating with a violinist of the superiority of their respective instruments to convey human emotion.<p>Watching a seasoned vim or emacs user create, mold, shape, reformat text like it was a piece of clay in the hands of a potter is truly inspiring.<p>As for me, my instrument of choice is Sublime Text (which, I guess, downgrades me to the status of a flute player), though I occasionally use vim for Ops stuff. I think there are some mac-centric UX patterns that I have a hard time giving up.
评论 #8084930 未加载
评论 #8090465 未加载
评论 #8085476 未加载
tach4n将近 11 年前
Another option for &quot;modal&quot; editing in emacs is god-mode(1). It lets you use emacs commands without modifier keys. I have it set to change my mode-line color when it&#x27;s activated, it&#x27;s great if you want a little taste of vim but not the problem of trying to shoehorn vim key-bindings into emacs.<p>1. <a href="https://github.com/chrisdone/god-mode" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;chrisdone&#x2F;god-mode</a>
评论 #8088180 未加载
grundprinzip将近 11 年前
I don&#x27;t know why, I find this post greatly uninformative. Yes, you can have some kind of Vim mode in Emacs (as you can in Sublime) and yes it takes time to remember key-bindings. If you have years of experience in Vim, why would you expect to get used to Emacs keybindings in a short time?<p>It&#x27;s like moving to a foreign country and then continue to buy and to eat only your old local food, and go out and talk to only people from your old home. You will miss so much.
elwell将近 11 年前
Hmm... this post didn&#x27;t seem to say that much. We got a couple points and then a sudden conclusion. Just saying...
评论 #8085049 未加载
nick_riviera将近 11 年前
Until it goes wrong or you have to delve into elisp or you get carpal tunnel...<p>After 20 years of switching back and forth I decided I wanted an extensible editor not a programming language with an editor built in. That&#x27;s worked well for me.<p>I really always just want the simplest thing that will work as I need to rely on it entirely and understand how it works. If I was to use emacs, I&#x27;d probably use mg as shipped with OpenBSD.
评论 #8084632 未加载
评论 #8084657 未加载
bmoresbest55将近 11 年前
I still do not undertand the devotion that people have with these text editors. I prefer Vim however I could see myself using it soley or even half the time. I feel like I know the basic commands and it is fast but with the ease of a sublime text or something similar why do people still use these pieces of software so frequently? (Not a rhetorical question)
评论 #8084906 未加载
评论 #8084765 未加载
评论 #8085038 未加载
评论 #8084772 未加载
评论 #8084805 未加载
评论 #8084883 未加载
评论 #8084798 未加载
评论 #8084767 未加载
Aardwolf将近 11 年前
A relevant comic:<p><a href="http://hackles.org/cgi-bin/archives.pl?request=284" rel="nofollow">http:&#x2F;&#x2F;hackles.org&#x2F;cgi-bin&#x2F;archives.pl?request=284</a>
评论 #8084754 未加载
gergles将近 11 年前
I do wonder what it would be like to use an editor where the main cursor navigation was forward&#x2F;backward incremental search. One case of this is the Canon CAT[1] word processor, which used &quot;LEAP&quot; keys for cursor movement (and nothing else).<p>I&#x27;m often curious how productive it would be to use while coding.<p>1: <a href="https://en.wikipedia.org/wiki/Canon_Cat" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Canon_Cat</a> Bonus link: <a href="http://clickamericana.com/media/advertisements/the-canon-cat-word-processor-1987" rel="nofollow">http:&#x2F;&#x2F;clickamericana.com&#x2F;media&#x2F;advertisements&#x2F;the-canon-cat...</a>
评论 #8084832 未加载
评论 #8085015 未加载
sousousou将近 11 年前
I&#x27;m both a vim and emacs user. I love vim for all the reasons everyone always mentions, but emacs comes out ahead consistently basically because emacs-lisp is so much more usable to me than vimscript. I find it much easier to create or modify plugins in emacs... Don&#x27;t like the (often overfeatureful) functionality of a plugin? Change it!
weavie将近 11 年前
The last time I tried Emacs+Evil I found that when pressing Ctrl+[ there was a slight delay when moving back into command mode. I was constantly tripping up when typing furiously.<p>This alone was enough to move me back to Vim. Everything else about Emacs was awesome. I would love to go back if I could get over this one problem..
评论 #8085323 未加载
评论 #8087500 未加载
jeffreyrogers将近 11 年前
I was looking at Slackware Linux the other day and came across this page <a href="http://www.slackware.com/install/softwaresets.php" rel="nofollow">http:&#x2F;&#x2F;www.slackware.com&#x2F;install&#x2F;softwaresets.php</a>. I enjoyed how emacs got its own software set due to its size.
rdtsc将近 11 年前
&gt; I completely do not understand how anyone can use Emacs’ default keybindings.<p>I completely do not understand how switching modes is a good idea in an editor. It just doesn&#x27;t fit in my brain somehow. I start typing and randomly end up pasting and cutting. I want to paste and cut it randomly types my commands in insert mode.<p>Emacs cords are pretty intuitive to me. I don&#x27;t know many: just moving, saving, creating 2 windows, search &amp; replace, cutting and pasting. There are hundreds more, but you can get away with a few basic ones.<p>Save needing to rebind the Ctrl key to CapsLock, emacs key-bindings are optimized to not have to move the hands to the mouse or arrow keys, which I appreciate. Vim&#x27;s are as well, but again I don&#x27;t like modes, so there is that.
评论 #8087603 未加载
评论 #8087633 未加载
评论 #8087968 未加载
Igglyboo将近 11 年前
So when i&#x27;m programming I find myself spending far more time thinking about what to type next than actually typing it, seems to me like there isn&#x27;t much to gain by learning vim&#x2F;emacs or am I missing something?
评论 #8089865 未加载
评论 #8089852 未加载
评论 #8089860 未加载
评论 #8089867 未加载
评论 #8089911 未加载
elwell将近 11 年前
My main concern with Emacs (at least on Windows) is that it actually crashes every now and then. I haven&#x27;t dealt with many programs in the past few years that do still that.
评论 #8084801 未加载
tuhdo将近 11 年前
If you want to see what Emacs is capable of, check &quot;Emacs Mini Manual&quot; that has the demo at the beginning: <a href="http://tuhdo.github.io/emacs-tutor.html" rel="nofollow">http:&#x2F;&#x2F;tuhdo.github.io&#x2F;emacs-tutor.html</a><p>Then, if you worry about fuzzy project finders, better one exists that does not need fuzzy (I ditched all fuzzy finders for it): <a href="http://tuhdo.github.io/helm-intro.html" rel="nofollow">http:&#x2F;&#x2F;tuhdo.github.io&#x2F;helm-intro.html</a>
therealmarv将近 11 年前
So many Emacs articles the recent days... please tell me: Should I really switch to Emacs as a web developer? Is it really superior to SublimeText and Brackets for a web dev?
评论 #8084725 未加载
评论 #8084702 未加载
评论 #8084692 未加载
评论 #8088035 未加载
laichzeit0将近 11 年前
I like that he mentioned CtrlP. It&#x27;s the single plugin that prevents me from switching to Emacs.<p>There is currently nothing in Emacs (last I played with this was 3 months ago) that is 100% equivalent to CtrlP. There are some close approximations but they&#x27;re not as good the real deal. I can understand how Emacs guys won&#x27;t even notice this because they&#x27;ve not worked with something that&#x27;s better than the best they have, but for Vim guys it sucks.
评论 #8084972 未加载
评论 #8084641 未加载
评论 #8106382 未加载
评论 #8084518 未加载
评论 #8084577 未加载
pvaldes将近 11 年前
(I&#x27;m currently toying with the editor able (ql:quickload &quot;able&quot;) (able:start), so at this moment, I&#x27;m not in a good position to figth at those thumb wars... but, as long time and happy emacs user, I need to tell the world that &quot;little pinky&quot; is alive and tipping, thanks)<p>You can have it all, emacs, and vi... so, what is the bigg fuss?
jeffbr13将近 11 年前
Vim&#x27;s home-row commands are great... Unless you use a non-QWERTY keyboard layout.<p>A lot of developers forget that there exist other methods of input, and mnemonic-based shortcuts are one of those things that make a lot more sense than attempting to optimise for a tiny reduction in finger-movement (which ought to be the domain of the input-device anyway).
评论 #8085321 未加载
评论 #8087527 未加载
bshanks将近 11 年前
I use emacs with the &#x27;viper&#x27; mode extension, along with a custom keymap that i made that places the keys i use most on and near the home keys: <a href="https://github.com/bshanks/viperre" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;bshanks&#x2F;viperre</a><p>I actually use viperre with a Colemak keyboard map, but there&#x27;s a QWERTY mode too.
sprayk将近 11 年前
I really wanted to use Org-mode, but my vim muscle memory and lack of knowledge of keybindings to do useful things like copy&#x2F;paste and move around with more than just arrow keys were preventing me from being productive. Finally got Evil installed and haven&#x27;t looked back! Evil and Org-mode work great together.
评论 #8085221 未加载
dang将近 11 年前
Is anybody besides me still having the problem with Emacs on Mavericks where the OS X distnoted process gradually eats up gigabytes of RAM? It seems to have to do with running multiple instances of Emacs.
评论 #8088774 未加载
评论 #8087814 未加载
评论 #8087107 未加载
评论 #8087711 未加载
rorykirchner将近 11 年前
emacs-prelude is a nice way to get started with emacs if you are a vim user: <a href="https://github.com/bbatsov/prelude" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;bbatsov&#x2F;prelude</a><p>You can enable the prelude-evil.el module and start out with a nice set of bindings. It would be sweet if there were some more pull requests to make the evil-mode bindings in prelude more closely match vim.
Yuioup将近 11 年前
I use Vim on Windows. I tried to learn Emacs but I keep running into roadblocks because of poor Windows compatibility of plugins.
评论 #8084522 未加载
评论 #8084603 未加载
评论 #8084829 未加载
elwell将近 11 年前
Brace yourself, an editor war will follow... and people commenting on the presence of an editor war... like this comment.
评论 #8084835 未加载
mcguire将近 11 年前
This weekend&#x27;s project: ed mode for Emacs.
santiagobasulto将近 11 年前
&quot;a pretty decent piece of software&quot;?
azinman2将近 11 年前
Vim.
jheriko将近 11 年前
notepad and other modern solutions... they are ubiquitous for a reason. typing is such a tiny part of programmer productivity compared to thinking...<p>... do a little more thinking and never have this problem again, learn to adapt to whatever text editor is on the system etc.
评论 #8096029 未加载
mercurial将近 11 年前
It&#x27;s still too slow for me. I have often several vims open, usually for a short time, and I&#x27;m not going to start a daemon in my session to have a decent startup time, that&#x27;s unreasonable. Also, even setting a theme like solarized dark turned out to be a headache last time I tried. I think I&#x27;ll wait for neovim.
评论 #8084678 未加载
评论 #8084852 未加载