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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

The One True Text Editor

17 点作者 cwb将近 16 年前

13 条评论

jsrn将近 16 年前
I consider it strange that he begins his Vi/Vim tutorial with a page of (bad) Emacs bashing. I mean, he obviously knows the virtues of his editor (I skimmed the next few pages), but why begin it with comments like this one:<p><pre><code> &#62; Emacs is based in Lisp. 'Nuff said. </code></pre> What is that supposed to mean? You can critize Elisp for not having lexically scoped variables (although there is lexical-let in 'cl) or tail-call optimization. But the above "statement" sounds as if he has never looked at Elisp code. Btw. if you are new to Emacs, make sure to have the sources installed as well - you can then look at the implementation of every function with<p><pre><code> C-h f function-name </code></pre> and then selecting the filename (this is also true of the functions and special forms written in C). If you do this for a while, you will recognize that the Emacs programming model makes sense - and it's not so much because of or in spite of Lisp - it's more because of the Emacs-specific abstractions (point, buffers, markers, buffer-local variables, ...) that are quite different from the usual paradigms most of us are used to, but nevertheless very powerful for text-munging.<p><pre><code> &#62; Vi commands are a Unix standard. </code></pre> yeah, but bash (for example) and other programs using the Readline library default to Emacs keybindings...<p><pre><code> &#62; Cleaner interface. Only one line is used &#62; up for commands; everything else is your text. &#62; Easy to read. Good. </code></pre> ok, my Emacs uses two lines (one for the modeline and one for the minibuffer). Of course, ed has a <i>much</i> cleaner interface than both Vi/Emacs...
评论 #746082 未加载
评论 #745376 未加载
评论 #745224 未加载
tamas将近 16 年前
Being another hopeless victim of modal editing, I do have sometimes those "I press a key and it appears on the screen?! What is this madness!" moments when using other editors. However, I do not think that Vim is The One True Text Editor. Actually, I am envious of Emacs users for their flexible, programmable text editor (operating system? CLI application framework?), but couldn't make the switch yet, I really do miss the Vim interface.
评论 #745099 未加载
mixmax将近 16 年前
I tried to switch to emacs around a year ago. I even posted a thread here labeled <i>Ask YC: Why is emacs a great editor?</i> (<a href="http://news.ycombinator.com/item?id=313025" rel="nofollow">http://news.ycombinator.com/item?id=313025</a>) Even though I got some great feedback and lots of tips and tricks I never got friendly with the editor. The learning curve was simply too steep, the way of doing things too arcane and the usability too bad.<p>I'm not denouncing emacs, a lot of people I hold in very high regard would commit suicide if they couldn't use it, I'm just saying that emacs is like Richard Stallman: An indisputable genius, but to work with him you have to do things his way, and share his beliefs about the world. Which I don't.
评论 #745290 未加载
jacquesm将近 16 年前
Wasn't there a rule about not introducing classic flamewar subjects ?<p>There are ony two subjects contending for the top spot in 'the most flamewar attraction power graph', the first is significant whitespace in python, the second is Vi vs Emacs (and to avoid starting a flamewar by choosing a particular order, I'll repeat them alphabetically, Emacs vs Vi).<p>The rest of the subjects (MySQl vs postgresql, Windows vs Linux and so on) are mild by comparison.
评论 #745207 未加载
评论 #746277 未加载
Keyframe将近 16 年前
what amazes me with emacs is that every time I learn something new AND use it. Recently I've found out about irc in it, I use eshell constantly, now I've found out about gomoku.
评论 #745121 未加载
almost将近 16 年前
I'm an Emacs user but I do sometimes commit the heresy of looking at Vi and wondering. Not that I'd ever want to leave the wonderful environment I have in Emacs with my large (and growing) collection of customizations but the modal editing and compossable commands do look like they could be pretty cool once you get used to them ("7 habbits of effective text editing" shows some pretty cool stuff).<p>So anyway, has anyone used Viper much? I notice it has WIZARD mode which claims to keep all of your Emacs customizations and keys working. So is Viper just for Vi refugees in an Emacs world or might it be useful for a Emacs user wanting to see what it's all about?
评论 #745374 未加载
billswift将近 16 年前
I do most of my editing in emacs. I tried fairly hard to learn vi back in the late 1990s (even buying the O'Relly book for help), but I cannot get the habit of separate command and writing modes; I very frequently forget about modes altogether, and even when I don't I forget which mode I'm in until I try to type something.<p>I usually have several emacs sessions suspended and ready for me to work on with an fg command, but I have also written a script that lets me easily use cat to append to or create a new text file from the command line, when I just want to add a little without waiting for a new emacs session to load.
评论 #746863 未加载
Gertm将近 16 年前
Vim rocks!...when emacs is not available.
rpdillon将近 16 年前
He spent an hour trying to quit? Did it ever occur to him to use C-z? That's pretty standard in Unix, and would have dropped him back to the terminal so he could kill it easily. He's acting like C-x C-c is somehow WAY more arcane than :q!. To each his own, I suppose.
troels将近 16 年前
&#62; Emacs is based in Lisp. 'Nuff said.<p>'Nuff said indeed.
tybris将近 16 年前
Pfff, just type your stuff in stdin.
smithjchris将近 16 年前
Emacs is for people who want to have a versatile do-it-all environment.<p>Vim is for people who want to process text efficiently.<p>Typically, software with such a high level of integration sucks. It's a collection of mediocre tools rather than one excellent tool.<p>My combination of Vim + irssi + mutt + ddd is greater than any emacs tools as they are cherry picked to be the best at their job rather than the most integrated. I know. I binned emacs for them.<p>Emacs is effectively a somewhat less harsh form of vendor lock in.
评论 #745371 未加载
评论 #746876 未加载
neoclassical将近 16 年前
Knowing vi means that on any machine you have the ability to edit text... not a bad trade-off, if you ask me. It's also a nice break if you're tired of a Macintosh or Vista UAC asking you every ten seconds if you really want to do what you just tried to do.