当前位置:网站首页>How to exit VIM
How to exit VIM
2022-04-23 04:56:00 【Huang Jiajun】
immediate withdrawal Vim
:q Quit current Vim window , If the current window is the last window, exit Vim( or :quit).
:conf q Quit current Vim window , If the current window is modified , Then you will be prompted to select ( or :confirm quit).
:q! Force exit from current Vim Window and ignore all changes , Even if the current buffer is modified, it will not be saved ( or :quit!:).
:cq Exit directly in any case Vim Without saving the file , And return an error code ( or :cquit:).
:qa Quit all Vim window , Unless there is a modified buffer ( or :qall:).
:conf qa Exit all open Vim window ; If there is a modified buffer , Then you will be prompted to select ( or :confirm qall:).
:qa! Force exit of all open Vim window , Forcibly exit without saving any modified content ( or :qall!:)
:e! Abandon all changes , And open the original file .
Save file and exit Vim
:wq: Save and exit . Save the current file and exit Vim. If the file is read-only or the buffer is unknown , The writeback operation will fail .
:wq test.txt: Save the current Vim The contents of the buffer to the file test.txt Enter and exit Vim.
:[range]wq test.txt: Save the current Vim Buffer by range Define the content to the document test.txt Enter and exit Vim.
:[range]x test.txt: Function and :[range]wq test.txt similar , However, only when the file is modified, the write will actually be saved .
版权声明
本文为[Huang Jiajun]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230454290286.html
边栏推荐
- Spark FAQ sorting - must see before interview
- Innovation training (XI) airline ticket crawling company information
- Informatics Olympiad 1955: [11noip popularization group] Swiss round | openjudge 4.1 4363: Swiss round | Luogu p1309 [noip2011 popularization group] Swiss round
- List remove an element
- Sword finger offer: the path with a certain value in the binary tree (backtracking)
- 用LCR表完美测试无线充电系统中的线圈
- 信息学奥赛一本通 1955:【11NOIP普及组】瑞士轮 | OpenJudge 4.1 4363:瑞士轮 | 洛谷 P1309 [NOIP2011 普及组] 瑞士轮
- PHP counts the number of files in the specified folder
- How can continuous integration (CI) / continuous delivery (CD) revolutionize automated testing
- Spark small case - RDD, broadcast
猜你喜欢
2022/4/22
Innovation training (VI) routing
MySQL -- execution process and principle of a statement
持续集成(CI)/持续交付(CD)如何彻底改变自动化测试
Solve valueerror: argument must be a deny tensor: 0 - got shape [198602], but wanted [198602, 16]
Wechat payment function
C language: spoof games
Leetcode 1547: minimum cost of cutting sticks
Windows remote connection to redis
Download PDF from HowNet (I don't want to use CAJViewer anymore!!!)
随机推荐
New terminal play method: script guidance independent of technology stack
简单的拖拽物体到物品栏
Innovation training (V) configuration information
Opencv + clion face recognition + face model training
[database] MySQL multi table query (I)
Detailed explanation of the differences between TCP and UDP
洛谷P2731骑马修栅栏
Perfect test of coil in wireless charging system with LCR meter
Gets all dates between two times
Spark FAQ sorting - must see before interview
跨境电商 | Facebook 和 Instagram:哪个社交媒体更适合你?
Download PDF from HowNet (I don't want to use CAJViewer anymore!!!)
L2-011 play binary tree (build tree + BFS)
Learning Android V from scratch - UI
多线程基本概念(并发与并行、线程与进程)和入门案例
Installation and deployment of Flink and wordcount test
Better way to read configuration files than properties
getprop 属性
解决ValueError: Argument must be a dense tensor: 0 - got shape [198602], but wanted [198602, 16].
AQS source code reading