Super Easy Vim Splits

1 Point

Zach Queal Zach Queal

2 months ago

Vertical Split: |

Horizontal Split: _

Forward Split: <Tab>

Backward Split: <S-Tab>

nnoremap <expr><silent> \| !v:count ? "<C-W>v<C-W><Right>" : '\|'
nnoremap <expr><silent> _ !v:count ? "<C-W>s<C-W><Down>"  : '_'
nnoremap <Tab> <C-W>w
nnoremap <S-Tab> <C-W>W