linux如何退出vim
Want to save your changes and exit? Press the esc
key, then type :wq
, which means w
rite and q
uit.
是否要保存您的更改并退出? 按esc
键,然后键入:wq
,该装置w
仪式和q
UIT。
Want to exit without saving changes? Press the esc
key, then type :q!
要退出而不保存更改? 按esc
键,然后输入:q!
Don’t feel bad, you’re not alone in not knowing how to exit Vim,, and if you search Twitter you’ll see all sorts of memes and funny tweets:
别感到难过,不是不知道如何退出Vim的人,而且, 如果您搜索Twitter,您会看到各种各样的模因和有趣的推文 :
- “How do you generate a random string? Put a first year Computer Science student in Vim and ask them to save and exit.” “如何生成随机字符串? 将一名计算机科学专业的一年级学生带到Vim,并要求他们保存并退出。”
- “One does not simply exit Vim” “一个不只是退出Vim”
- “Nobody knows how to exit Vim” “没人知道如何退出Vim”
- “I’ve been using Vim for a long time now, mainly because I can’t figure out how to exit” “我已经使用Vim很长时间了,主要是因为我不知道如何退出”
It also looks to be one (if not the one) most popular question on Stack Overflow.
它似乎也是Stack Overflow上最受欢迎的问题之一(如果不是唯一的话 )。
Don’t get me wrong. I like Vim. I don’t love it, it’s just a tool. I usually use VS Code for day to day writing and coding, but I sometimes use it.
不要误会我的意思。 我喜欢Vim。 我不喜欢它,它只是一种工具。 我通常使用VS Code进行日常编写和编码,但有时会使用它。
linux如何退出vim