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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Exiting VIM is hard; sometimes we need to take drastic measures

266 点作者 3001将近 5 年前

40 条评论

metrokoi将近 5 年前
Clicked on the link thinking it was about another Vim clone, but this gave me quite the laugh! I love over-built solutions to slight annoyances.<p>I would seriously use a physical &quot;kill -9&quot; button to kill the current window or program for when a browser halts or someone sneaks a On! function into your code.
评论 #23311704 未加载
评论 #23310428 未加载
_bxg1将近 5 年前
For those like me who don&#x27;t edit text from the terminal often enough to memorize any vim or emacs shortcuts, your system probably ships with nano, which is a dead-simple editor built for people like us: <a href="https:&#x2F;&#x2F;en.m.wikipedia.org&#x2F;wiki&#x2F;GNU_nano" rel="nofollow">https:&#x2F;&#x2F;en.m.wikipedia.org&#x2F;wiki&#x2F;GNU_nano</a><p>You can even set it as your default editor via an environment variable and it&#x27;ll get automatically invoked as needed by git, etc.
评论 #23308774 未加载
评论 #23307821 未加载
评论 #23311001 未加载
评论 #23308319 未加载
评论 #23309413 未加载
评论 #23307810 未加载
评论 #23309992 未加载
评论 #23308627 未加载
YeGoblynQueenne将近 5 年前
You think being stuck inside vim is bad? Wait &#x27;till you&#x27;re stuck inside ed, in the Unix mode of Z&#x2F;OS on a mainframe.<p>... that you can&#x27;t even reboot.<p><pre><code> ? exit ? quit ? bye ? ^[ ? HELP! ?</code></pre>
评论 #23308669 未加载
评论 #23311009 未加载
评论 #23309911 未加载
评论 #23309243 未加载
评论 #23312301 未加载
brianpursley将近 5 年前
I’m not sure I understand the use case for wanting to kill vim. Wouldn’t you want to save what you are editing?<p>Now vim clutch, on the other hand, is the kind of innovation that saves vim enthusiasts valuable milliseconds... <a href="https:&#x2F;&#x2F;github.com&#x2F;alevchuk&#x2F;vim-clutch" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;alevchuk&#x2F;vim-clutch</a>
评论 #23307449 未加载
评论 #23308174 未加载
makapuf将近 5 年前
This is ridiculous. There are more sensible ways to exit vim: <a href="https:&#x2F;&#x2F;github.com&#x2F;hakluke&#x2F;how-to-exit-vim&#x2F;blob&#x2F;master&#x2F;README.md" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;hakluke&#x2F;how-to-exit-vim&#x2F;blob&#x2F;master&#x2F;READM...</a>
评论 #23312360 未加载
__MatrixMan__将近 5 年前
Rather than taking up usb port just for this purpose, I wonder if you could man-in-the-middle the HID protocol so you could just have a &quot;Kill Vim&quot; button on the USB cable you&#x27;re already using for for keyboard.<p>Maybe it could watch for keystrokes and turn on an LED when it thinks vim is open, so you don&#x27;t accidentally try to kill an already killed vim.
评论 #23307871 未加载
评论 #23307845 未加载
评论 #23311116 未加载
评论 #23308933 未加载
3001将近 5 年前
Related: <a href="https:&#x2F;&#x2F;github.com&#x2F;hakluke&#x2F;how-to-exit-vim?fbclid=IwAR0DmwIdFjKZJLNUXSQquS7wBU94zTGQQRrYjFXSpaBIIV1BylkmxcJovLc" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;hakluke&#x2F;how-to-exit-vim?fbclid=IwAR0DmwId...</a>
评论 #23308075 未加载
runawaybottle将近 5 年前
Softbank would like a word with you.
FillardMillmore将近 5 年前
This is pretty funny. Especially the following:<p>&gt; ...you can send the author 500,000 USD$ for a custom made VIMKiller solution. You might say &quot;Hey this gadget is super practical, and will definitely help me advance in my career, but it is maybe a little pricey.&quot; - think of this as an investment. Half a million, or learn VIM?<p>This is a long running joke among developers&#x2F;sysadmins. Typically, most sysadmins are capable enough to know how to exit vim, but many developers (who often heavily utilize IDEs) stumble into vim at some point (due to it often being the default editor on many implementations of Linux) and the utterly helpless feeling they have is hilarious to all of us tech sadists (I believe the German word is &quot;schadenfreude&quot;).<p>The tough part is that unless you&#x27;re familiar with Linux, you might not even realize what program&#x2F;text editor you&#x27;re actually in. If everyone knew they were in &quot;vim&quot;, googling a solution to get out would be trivial.
评论 #23313304 未加载
sgloutnikov将近 5 年前
Thanks, got a good chuckle from this! Reminded me of an old joke I had read:<p>&quot;How do you generate a random string? Put a first-year computer science student in Vim and ask them to save and exit.&quot;
评论 #23308234 未加载
shultays将近 5 年前
This is potentially huge for &quot;exit vim&quot; speedrun community, assuming it wont be banned. I can easily this easily shaving maybe another 10 seconds from current wr<p><a href="https:&#x2F;&#x2F;youtu.be&#x2F;TLbfqZBL8t8" rel="nofollow">https:&#x2F;&#x2F;youtu.be&#x2F;TLbfqZBL8t8</a>
Shorel将近 5 年前
Related issue:<p>A huge percentage of git repositories have a :q! (or similar) file in their root directory.
pronoiac将近 5 年前
Ooh, this might help with the tool-assisted vim exit speedruns. Here&#x27;s one not TAS: <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=TLbfqZBL8t8" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=TLbfqZBL8t8</a>
aarong11将近 5 年前
The only reason I use vim is because I don&#x27;t know how to quit
signaru将近 5 年前
I want to put &quot;knows how to exit Vim&quot; in my CV.
kaliszad将近 5 年前
Of course, there is Ed Mastery by Michael W. Lucas: <a href="https:&#x2F;&#x2F;mwl.io&#x2F;nonfiction&#x2F;tools#ed" rel="nofollow">https:&#x2F;&#x2F;mwl.io&#x2F;nonfiction&#x2F;tools#ed</a> that you can read in an afternoon easily. It helps you understand some UNIX history, explains why stuff works the way it works and you can have a good laugh at that.
stephc_int13将近 5 年前
Haha, reminds me of the first time I tried to use vi on my first ever Linux install (from a CD found in a magazine in the 90s)<p>Never heard of modal editing at the time, and not being able to simply use the arrows or anything like CTRL-X &#x2F; CTRL-Z to quit gave me an extremely bad first impression of the *nix world.<p>(I really enjoyed using Vim a few years later)<p>And yeah I had to use kill -9 from another terminal...
soraminazuki将近 5 年前
I never understood why people like to joke to about not being able to quit vim. When you launch vim, it literally tells you how in the most clear way possible:<p><pre><code> type :q&lt;Enter&gt; to exit</code></pre>
评论 #23308713 未加载
评论 #23308305 未加载
评论 #23308758 未加载
评论 #23308418 未加载
评论 #23308589 未加载
评论 #23308719 未加载
评论 #23309197 未加载
评论 #23308690 未加载
abishekk92将近 5 年前
Thanks for this, it made me laugh today!
xtiansimon将近 5 年前
I&#x27;ve been a victim of VI(M) since dinking around with Red Hat 3 CD ROMS to make a NAT server to share DSL (and play Marathon)--finally a solution! (&gt;_&lt;) over 20 years of my life or $500k? A small price to pay!
nukst将近 5 年前
I don&#x27;t remember why I decided to learn Vim, but the first time I saw it was in a very intelligent programming channel, Goran Milovanovic&#x27;s python tutorials on YouTube
fit2rule将近 5 年前
Who exits vim? I mean, seriously. &quot;:e .&quot; for the win.
leowoo91将近 5 年前
I thought this device would act as a keyboard but it requires another process to listen. Maybe sending 3 times esc + :q + return could quit in most cases..
rpg3将近 5 年前
I love the &quot;Seriously, don&#x27;t take this seriously. Don&#x27;t get me wrong, this actually does work.&quot; disclaimer. Hilarious
JayDoubleu将近 5 年前
potty training is also hard. But once you&#x27;ve learned it you never say it is something that you might even consider difficult.
jaylossless将近 5 年前
Ok, I got a good laugh out of this one. I&#x27;m reading Practical Vim 2nd now...and gave the book a hug instead. VIM fo&#x27; life.
bananicorn将近 5 年前
In all honesty, I think I had a harder time exiting ED (the standard editor), although vim and ED are quite similar in spirit ;)
评论 #23308642 未加载
gexla将近 5 年前
Couldn&#x27;t you just unplug the computer?
评论 #23307755 未加载
agustif将近 5 年前
micro[0] is a nice nano&#x2F;vim like replacement or just a simple terminal text editor with modern nice <i>mouse</i> support, might be worth a try!<p>0: <a href="https:&#x2F;&#x2F;github.com&#x2F;zyedidia&#x2F;micro" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;zyedidia&#x2F;micro</a>
评论 #23313670 未加载
rurban将近 5 年前
This kills VIM, but does not exit VIM as announced. False marketing, beware.
jeandejean将近 5 年前
So all that fuss for refusing to learn &quot;:q!&quot;? I love that! :-D
评论 #23308217 未加载
nocnalem将近 5 年前
Am I the only one who read that as Val Kilmer?
tomohawk将近 5 年前
What will those emacs people think of next?
评论 #23310022 未加载
jaco8将近 5 年前
For the vim challenged:<p>apt-get install cream<p>takes care of most initial pain.
_bxg1将近 5 年前
I generally just kill the whole terminal
exabrial将近 5 年前
Needs blockchain integration
joeblau将近 5 年前
Where is the “Buy” button?!
评论 #23310078 未加载
doublesCs将近 5 年前
&quot;Why did you use julia for this project?&quot;<p>&quot;Right tool for the job.&quot;
评论 #23318393 未加载
ghoshbishakh将近 5 年前
You made my day
qwerty456127将近 5 年前
I doubt Julia is mature enough for this job. You should better have chosen good old Matlab or Fortran.