How to close one of vim's multiple windows
滿天的星座
滿天的星座 2017-05-16 16:39:55
0
6
803

Use VIM, then: vi filename to open a new file, but how to close this new file? :q and quit all

滿天的星座
滿天的星座

reply all(6)
仅有的幸福

:bdelete or:bd

我想大声告诉你

Multi-window vim sometimes feels uncomfortable, just open multi-terminal tmux

Ty80

:tabc close the current window
:tabo Close all windows

洪涛

:vi filename 会关闭当前正在编辑的文件,打开filename,此时整个vi只打开了一个文件,:qOf course I quit

If you want to open two files at the same time

Use multiple tags :tab new filename 或者 多窗口:new filename

左手右手慢动作

I usually use :vs,把屏幕一分为二,:qto only exit the current

巴扎黑

:tabnew :sp :vspYou deserve it

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template