How do I close a single buffer (out of many) in Vim?
来源:互联网 发布:linux 共享打印机 编辑:程序博客网 时间:2024/05/29 00:35
I open several files in Vim by, for example, running
vim a/*.php
which opens 23 files.
I then make my edit and run the following twice
:q
which closes all my buffers.
How can you close only one buffer in Vim?
Answer:
A word of caution: "w does not stand for write but for wipeout!"
More from manuals:
:bd
Unload buffer [N] (default: current buffer) and delete it from the buffer list. If the buffer was changed, this fails, unless when [!] is specified, in which case changes are lost. The file remains unaffected.
If you know what your're doing, you can also use :bw
:bw
Like |:bdelete|, but really delete the buffer.
0 0
- How do I close a single buffer (out of many) in Vim?
- How do I get the “Command Buffer” in Solaris 10?
- How do I print out a tree structure?
- How do I sort an array of hashes by a value in the hash?
- How do I create a log file of my installation?
- How do I pass a list of files to grep
- How do I register a custom filetype in iOS【链接】
- How do I run a 64-bit guest in VirtualBox?
- How do I instantiate a Queue object in java?
- How Do I Declare A Block in Objective-C?
- How Do I Declare A Block in Objective-C?
- How Do I Declare A Block in Objective-C? [备忘]
- How Do I Declare a Closure in Swift?
- How do I hide a menu item in the actionbar?
- How Do I Declare A Block in Objective-C?
- How do I deploy a Flask application in IIS?
- How do I find out what version of Linux I'm running?
- How do I upgrade a single MongoDB node to sharding mode?
- Vim user manual notes
- 13个超棒的代码资源网站推荐
- tcp连接探测Keepalive和心跳包
- Eclipse 第一个java程序完全图解
- Web性能测试 _ Web测试指南(二)
- How do I close a single buffer (out of many) in Vim?
- 修改linux主机名称
- RTP/RTCP/RTSP/SIP/SDP 关系(转)
- 第二周项目 5 数组作数据成员(1)
- 查找所有SEQUENCE、TABLE, 创建SEQUENCE
- Hibernate 所有缓存机制详解
- 配置Spring的Proxool数据源
- OpenGL/GLSL数据传递小记(3.x)
- [省选前题目整理][BZOJ 2326][HNOI 2011]数学作业(DP+矩阵快速幂)