search

Home  >  Q&A  >  body text

How to close one of vim's multiple windows

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

滿天的星座滿天的星座2800 days ago847

reply all(6)I'll reply

  • 仅有的幸福

    仅有的幸福2017-05-16 16:41:55

    :bdelete or:bd

    reply
    0
  • 我想大声告诉你

    我想大声告诉你2017-05-16 16:41:55

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

    reply
    0
  • PHP中文网

    PHP中文网2017-05-16 16:41:55

    :tabc close the current window
    :tabo Close all windows

    reply
    0
  • PHP中文网

    PHP中文网2017-05-16 16:41:55

    :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

    reply
    0
  • ringa_lee

    ringa_lee2017-05-16 16:41:55

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

    reply
    0
  • 巴扎黑

    巴扎黑2017-05-16 16:41:55

    :tabnew :sp :vspYou deserve it

    reply
    0
  • Cancelreply