写作方法2019nickjanetakis.com
写书和课程时,Vim为我节省了大量时间
Vim Is Saving Me Hours of Work When Writing Books and Courses
导读
这篇文章讨论作者如何用 Vim 节省写作书籍和课程的时间。多位评论者指出,节省时间的前提是你已经熟练掌握了 Vim,否则学习和配置的成本可能超过收益;也有评论提到 Emacs 的自动化能力提供了另一种思路。对写作者来说,值得思考的是工具如何服务于你的写作流程,而不是盲目追求效率。
可以直接用的写作要点
- 01
不要为了节省时间而花大量时间配置工具,先衡量学习成本是否真的值得。
- 02
只有当你已经熟练使用某个工具时,它才能真正提升你的写作效率。
- 03
写作工具的自动化(如宏、脚本、折叠)可以帮助处理重复性任务,但核心仍是内容本身。
- 04
无论用 Vim 还是 Emacs,找到适合自己的工作流比争论哪个工具更好更重要。
HN 评论精选
配置工具节省的时间可能抵不过学习成本,但乐趣是正当理由。
作者做了很多设置,但我很怀疑“节省时间”是合理理由。花在配置、学习和优化上的时间很可能远超节省下来的时间。这和开发者没先分析瓶颈就优化代码是类似的误区。不过你还是应该做这些,因为很好玩,Vim 很棒。
rejschaap查看英文原文
There are many reasons for doing the things the author did, but I highly doubt saving time is a valid reason. The amount of time spent on setting this up and learning these tools and optimizing the workflows and writing scripts will most likely be much more than any time saved (real or imagined). It is a similar pitfall that developers step into when they optimize their code before profiling where the bottlenecks are at. But of course you should still do all of this, because it is a lot of fun and Vim rocks.
Vim 的高效取决于熟练度,初学者反而会变慢。
说实话,Vim 只有在已经很熟练时才能帮你节省时间;如果不熟练,反而会拖慢你。它需要练习和日常使用才能掌握。我爱 Vim,但不要美化这一点。
INTPenis查看英文原文
Let's be honest though; vim saves you hours of work if you're already good at vim. If you're not then it'll just slow you down. It takes practice and daily use to learn. I love vim but let's not sugar coat it.
Emacs 的 Elisp 自动化能把文本处理变成编程,极大提升生产力。
学 Emacs 吧,然后你做任何事都能节省时间。只要学会写 Elisp 宏,就能把自己的知识自动化。想象把文本缓冲区变成编程环境,光标移动是基本控制,文本输出是最终目标。我最近写了一段 Elisp 代码,能处理文件、分析错误、给出问题行,我还能在不同缓冲区做集合运算,最后生成邮件。我只是个刚起步的新手,已经很惊讶于它的能力。Vim 宏也很疯狂。就像会计可以疯狂使用电子表格一样,我们很幸运工作对象恰好是文本。
kamaal查看英文原文
Learn Emacs and then you can save hours of work doing anything. All you do is learn how to write Elisp Macros. And then you automate your knowledge. Think of it like programming a text pad(s)(Like how excel is programming a list(s) of cells). You realize that the text buffer is your programming environment, with cursor movement as your basic control, and text output as your end goal. Then of course other programmatic facilities apply. Only recently wrote a piece of Elisp code at work, that takes a file, does a bit of error analysis and gives me offending lines and other inputs like ids. I take them in a buffer and do all kinds of set operations(intersection etc) from inputs in other buffers(Elisp code for that too). Then take them and have Elisp generate a email message for me(Again Elisp code to do this). I just copy paste and send it to respective stake holders. And I'm a novice who barely started with Emacs. I only imagine what I can do when I get fully proficient with it. It's like automating yourself. I guess we are only lucky our work happens to be mostly in text and we get to use emacs and vim(vim macros are just insane), just like accountants can put spreadsheets to crazy use as their work happens to deal with tables.
Emacs org mode 的折叠与转换功能很实用,适合大量笔记管理。
提供一个选择:我工作中有一个 23 万词的笔记文件,用 Emacs 的 org mode 编辑。我每周添加两三次内容。org mode 自带折叠功能,还有很多转换工具,常见用途不用专门写一次性脚本。
jkingsbery查看英文原文
Just throwing out an alternative: for work, I have a 230k word file of notes I've taken that I edit with emacs org mode. I add to this file 2-3 time per week (so, not every day, but pretty frequently). With org mode, you get the "folding" of different sections for free. Plus, org mode has different tools for converting content, so no need to build one-off bash scripts for many common use cases.
同类还值得读
被低估的工程技能:把文章写好
Undervalued Engineering Skills: Writing Well
这篇文章讨论为什么“写得好”是被低估的工程能力,以及它如何在团队协作、系统设计和职业发展中持续带来回报。
写作方法2019 · 1,109 分 · 371 评4 条写作要点编辑精选每行只写一句话:让写作和修改都更轻松的排版法
Writing one sentence per line
这是 Derek Sivers 的一篇短文,主张写作时每行只放一个句子,而不是按段落排版。
写作方法2022 · 849 分 · 297 评4 条写作要点编辑精选书面沟通是远程工作的超级能力
Written communication is remote work super power
这篇文章讨论远程工作中书面沟通的价值,评论区则补充了异步与同步沟通的适用场景,并提醒读者:备忘录、结论先行、结构化命令格式等书面沟通传统早已有之。
写作方法2020 · 831 分 · 190 评4 条写作要点编辑精选如何写出有用的文字
How to Write Usefully
保罗·格雷厄姆在这篇文章里给"有用的写作"下了一个可操作的公式:有用≈重要×新颖×正确×清楚,任一项为零,整篇文章就等于零;他还主张敢下确定判断、删掉让自己心虚的句子。
写作方法2020 · 821 分 · 285 评4 条写作要点编辑精选如何写得更清楚、想得更清楚,并学会复杂材料(PDF)
How to write more clearly, think more clearly, and learn complex material [pdf]
这份 PDF 讨论如何把文章写清楚、把思路理清楚,并用写作来学习复杂材料。
写作方法2022 · 779 分 · 153 评4 条写作要点编辑精选