vim: 窗口和文件

当前窗口操作文件

```
//打开文件
:e [file]
:open [file]
:find 在当前窗口打开文件

:e  //刷新文件

:e xx.out  //新建文件
:w xx.out   //另存为新文件
```

窗口分割

//查看目录并打开文件
Sex    Split,水平切割窗口,打开文件
Vex    Vertical,垂直切割窗口,打开文件
Tex    Tab,在tab中打开文件
Ex     Ex,在当前窗口打开文件
Vex!  同Vex,在右边切割窗口,打开文件目录

// 查看目录并打开文件
:sf     split中find文件    
:vert sf    vsplit中find文件

//打开光标出文件,往往用于头文件
C-w f。 在split中打开光标处文件.

//用split方式打开tag
C-w ] 

//创建新文件
:new     split中打开新文件
:vnew    vsplit中打开新文件

//水平/垂直布局切换
C-w JK/HL, 进行split的水平,竖直排列转换

C-w +/-移动窗口高度
C-w -当前窗口最高

C-w </>移动窗口宽度
C-w |当前窗口最宽
C-w = 还原当前窗口等大

C-w o 关闭当前窗口外其他所有窗口
:q 退出当前窗口
C-w q 退出当前窗口

C-w p   切换到前一窗口
C-w t   切换到topleft窗口
C-w b   切换到buttom-right窗口


《 “vim: 窗口和文件” 》 有 3 条评论

  1. where can i buy cheap cytotec without insurance Monitor Closely 1 atazanavir and zidovudine both increase risk of immune reconstitution syndrome

  2. does priligy work This is, at least partially, due to the interpatient variability in the pharmacokinetics of the agent, 1 3 which, in turn, is influenced by many factors, such as comedication, 3 5 lifestyle factors, and genetic variation in metabolizing enzymes

  3. how to buy priligy as a child Whether prophylactic antibiotic therapy is necessary is debated; however, such prophylaxis may be considered

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

About Me

一位程序员,会弹吉他,喜欢读诗。
有一颗感恩的心,一位美丽的妻子,两个可爱的女儿
mail: geraldlee0825@gmail.com
github: https://github.com/lisuxiaoqi
medium: https://medium.com/@geraldlee0825