簡體   English   中英

如何在mac終端中退出插入屏幕

[英]How to exit the insert screen in mac terminal

Merge branch 'develop' into peakfront

# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.

"To get updated code in my branch"


-- INSERT --

我已經輸入了這個,但我找不到保存並退出的方法,以便我可以在終端上工作。 我在這里使用什么命令?

按 esc,然后按冒號 (:),然后在鍵盤上輸入 wq 以保存並退出。

如果你想直接退出,不保存,寫 q 不帶 w

步驟:

  1. 按ESC
  2. 寫:w
  3. 寫:q

您的文字已保存:)

Escape 應該可以工作,但我最近發現自己處於一個奇怪的場景中,有時我的 esc 鍵無法退出插入模式。 我無法隔離這個問題,但我確實偶然發現了這樣一個事實,即如果您使用選項 + 左箭頭或右箭頭(就像您在代碼編輯器中跳過或突出顯示表達式一樣),它也會離開插入模式。

至少在我的帶有 M1 的 MacBook Pro(14 英寸,2021 年)上,我根本沒有修改鍵綁定。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM