1
uniudy 2016-02-23 20:54:08 +08:00 via iPad
|
2
jsfaint 2016-02-24 07:34:18 +08:00 via Android 1
装了 airline 就有很漂亮的 tab 栏了(当然不装也有,丑一点), gt 可以切换到下一个 tab 。也可以用命令:tabnext, :tabprew, :tabclose 等。当然鼠标爱好者可以直接点击
buffer 也不麻烦,很多人喜欢依赖插件,实际上我觉得自带的 buffer 管理就很方便 :ls 列出所有已打开的 buffer :b 数字 切换到对应 buffer :bd 数字 删除对应 buffer 记住这三个基本够用了 |
3
jerray 2016-02-24 10:47:14 +08:00
Vim Tab Madness. Buffers vs Tabs
http://joshldavis.com/2014/04/05/vim-tab-madness-buffers-vs-tabs/ |
4
ming2281 2016-03-14 11:44:08 +08:00
@jsfaint buffer 命令是否需要做快捷键的映射?(我感觉还是需要做一下的)
如果是,怎么映射比较科学(您是如何映射的?) |
7
7jmS8834H50s975y 2016-05-28 10:07:16 +08:00
@ming2281
不知道你是否喜欢这样的快捷键, 这对于多文件 编辑非常有用. https://img.vim-cn.com/24/c52868a96a0584460aff16b63ef0cd4d335683.png https://github.com/wsdjeg/DotFiles |
8
7jmS8834H50s975y 2016-05-28 10:08:10 +08:00
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 |