linux vim 多窗口,关于linux vim命令 总结
第 7 頁(yè) 多窗口
-------------------多窗口----------------------------------
vim -o one.txt two.txt 水平多個(gè)窗口打開多個(gè)文件
vim -O one.txt two.txt?? 垂直多個(gè)窗口打開多個(gè)文件
:all 為列表中的文件各開一個(gè)窗口(可vertical)
:split 上下分割當(dāng)前窗口,在上面打開新窗口
:vsplit 左右分割窗體,在左邊打開新窗口
:split two.c 在新窗口編輯文件
:3split alpha.c 設(shè)定新窗口的高度
:new 創(chuàng)建新窗口創(chuàng)建新文件在當(dāng)前窗口上面
:vnew 創(chuàng)建新窗口創(chuàng)建新文件在當(dāng)前窗口左面
:vertical new 等同于vnew
:vertical 加在任何分割窗口的命令前面,使其垂直分割
CTRL-W w 窗口切換
CTRL-W CTRL-W 和CTRL+W w一樣
:close 關(guān)閉窗口
:only 關(guān)閉其他所有窗口
CTRL-W + 增大窗口,可以用計(jì)數(shù)器
CTRL-W - 減小窗口,可以用計(jì)數(shù)器
15CTRL-W _ 指定當(dāng)前窗口高度為15
CTRL-W _ 最大化當(dāng)前窗口
CTRL-W h move to the window on the left
CTRL-W j move to the window below
CTRL-W k move to the window above
CTRL-W l move to the window on the right
CTRL-W t move to the TOP window
CTRL-W b move to the BOTTOM window
CTRL-W H move window to the far left
CTRL-W J move window to the bottom
CTRL-W K move window to the top
CTRL-W L move window to the far right
:qall 退出所有窗口
:wall 存儲(chǔ)所有文件
:wqall 存儲(chǔ)并退出所有文件
:qall! 放棄存儲(chǔ)退出所有文件
總結(jié)
以上是生活随笔為你收集整理的linux vim 多窗口,关于linux vim命令 总结的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 2019世界钢琴家排名前十位
- 下一篇: 打归零者是不是打击败三个小丑九能获得归零