Use VIM, then: vi filename to open a new file, but how to close this new file? :q and quit all
:bdelete or:bd
Multi-window vim sometimes feels uncomfortable, just open multi-terminal tmux
:tabc close the current window :tabo Close all windows
:vi filename 会关闭当前正在编辑的文件,打开filename,此时整个vi只打开了一个文件,:qOf course I quit
:vi filename
:q
If you want to open two files at the same time
Use multiple tags :tab new filename 或者 多窗口:new filename
:tab new filename
:new filename
I usually use :vs,把屏幕一分为二,:qto only exit the current
:vs
:tabnew :sp :vspYou deserve it
:tabnew
:sp
:vsp
:bdelete or:bd
Multi-window vim sometimes feels uncomfortable, just open multi-terminal tmux
:tabc close the current window
:tabo Close all windows
:vi filename
会关闭当前正在编辑的文件,打开filename,此时整个vi只打开了一个文件,:q
Of course I quitIf you want to open two files at the same time
Use multiple tags
:tab new filename
或者 多窗口:new filename
I usually use
:vs
,把屏幕一分为二,:q
to only exit the current:tabnew
:sp
:vsp
You deserve it