vim-unimpaired
vim-unimpaired copied to clipboard
window move, rotate, resize bindings
I'm just playing with what bindings feel most natural, but I'm wanting roughly:
" move cursor
map [w <C-W>h
map ]w <C-W>l
map [W <C-W>k
map ]W <C-W>j
" rotate
map [<C-W> <C-W>R
map ]<C-W> <C-W>r
" resize
map [ow <C-W><
map ]ow <C-W>>
map [oW <C-W>-
map ]oW <C-W>+
map cow <C-W>=
obviously I need to implement repeat support
btw, I'm happy to be convinced to just use buffers without windows, but these days I don't touch any buffers that aren't attached to windows
My first instinct is that window mappings are a contentious topic and probably better suited to another plugin. But I must admit your resize maps are tempting. I may try them in my vimrc and see how they feel.
Not sure what you have in mind for repeat support, but let me preemptively rule out ., as that's for editing operations only.
ah, I was mostly wanting them for the resize operations, it's a bit tedious to type <C-W>+ or ]ow many times.
But yes, it would break brains to attempt to put that in .
hmm, after some experience with these, I'm mostly using the ]w, [w & cow. Honestly, I don't like having to have another binding for ^W+k & ^W+j.