1
uniudy 2016 年 2 月 23 日 via iPad
|
2
jsfaint 2016 年 2 月 24 日 via Android 装了 airline 就有很漂亮的 tab 栏了(当然不装也有,丑一点), gt 可以切换到下一个 tab 。也可以用命令:tabnext, :tabprew, :tabclose 等。当然鼠标爱好者可以直接点击
buffer 也不麻烦,很多人喜欢依赖插件,实际上我觉得自带的 buffer 管理就很方便 :ls 列出所有已打开的 buffer :b 数字 切换到对应 buffer :bd 数字 删除对应 buffer 记住这三个基本够用了 |
3
jerray 2016 年 2 月 24 日
Vim Tab Madness. Buffers vs Tabs
http://joshldavis.com/2014/04/05/vim-tab-madness-buffers-vs-tabs/ |
7
7jmS8834H50s975y 2016 年 5 月 28 日
@ming2281
不知道你是否喜欢这样的快捷键, 这对于多文件 编辑非常有用. https://img.vim-cn.com/24/c52868a96a0584460aff16b63ef0cd4d335683.png https://github.com/wsdjeg/DotFiles |
8
7jmS8834H50s975y 2016 年 5 月 28 日
Window Management
Key Mode Action q Normal Smart buffer close s+p Normal Split nicely s+v Normal :split s+g Normal :vsplit s+t Normal Open new tab (:tabnew) s+o Normal Close other windows (:only) s+x Normal Remove buffer, leave blank window s+q Normal Closes current buffer (:close) s+Q Normal Removes current buffer (:bdelete) Tab Normal Next window or tab Shift+Tab Normal Previous window or tab <leader>+sv Normal Split with previous buffer <leader>+sg Normal Vertical split with previous buffer |