vim-unimpaired icon indicating copy to clipboard operation
vim-unimpaired copied to clipboard

window move, rotate, resize bindings

Open josephholsten opened this issue 8 years ago • 4 comments

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

josephholsten avatar Mar 24 '17 23:03 josephholsten

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

josephholsten avatar Mar 24 '17 23:03 josephholsten

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.

tpope avatar Mar 25 '17 00:03 tpope

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 .

josephholsten avatar Mar 25 '17 00:03 josephholsten

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.

josephholsten avatar Jul 07 '17 19:07 josephholsten