Skip to content

Commit b780fe6

Browse files
authored
Merge pull request #61 from Rolight/ehance/split-resize
add keyboard shortcuts to quick resize split window
2 parents 8d0eb33 + 0476cce commit b780fe6

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ vim扩展管理器使用的是Vundle,参见相关文档[3]。
4646
5. 关于centos 使用sudo的问题(sudo: vim: command not found)
4747

4848
   参考[http://superuser.com/questions/548508/why-cant-i-sudo-some-commands-e-g-vim](http://superuser.com/questions/548508/why-cant-i-sudo-some-commands-e-g-vim)
49-
49+
5050
6. 局域网安装问题
5151

5252
**[使用privoxy和shadowsocks搭建局域网http代理](https://github.com/TTWShell/legolas-vim/wiki/使用privoxy和shadowsocks搭建局域网http代理)——局域网开发机安装legolas-vim解决方案!**
@@ -69,6 +69,10 @@ vim扩展管理器使用的是Vundle,参见相关文档[3]。
6969
| Ctrl-j | 切换到下方的分割窗口 |
7070
| Ctrl-l | 切换到右侧的分割窗口 |
7171
| Ctrl-k | 切换到上方的分割窗口 |
72+
| Alt-h | 减小当前窗口的宽度 |
73+
| Alt-j | 减小当前窗口的高度 |
74+
| Alt-l | 增加当前窗口的高度 |
75+
| Alt-k | 增加当前窗口的宽度 |
7276
| Ctrl-g | 跳转到函数定义或者声明 |
7377
| Ctrl-y, | emmet自动补全快捷 |
7478
| -- | -- |

vimrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,11 @@ nnoremap <C-J> <C-W><C-J>
192192
nnoremap <C-K> <C-W><C-K>
193193
nnoremap <C-L> <C-W><C-L>
194194
nnoremap <C-H> <C-W><C-H>
195+
" quick resize split
196+
nnoremap ˙ <C-W><
197+
nnoremap ¬ <C-W>>
198+
nnoremap <C-W>+
199+
nnoremap ˚ <C-W>-
195200
196201
" ignore compiled files
197202
set wildignore=*.o,*~,*.pyc

0 commit comments

Comments
 (0)