Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

window move, rotate, resize bindings #122

Open
josephholsten opened this issue Mar 24, 2017 · 4 comments
Open

window move, rotate, resize bindings #122

josephholsten opened this issue Mar 24, 2017 · 4 comments

Comments

@josephholsten
Copy link

josephholsten commented Mar 24, 2017

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 josephholsten changed the title windows bindings? window move, rotate, resize bindings Mar 24, 2017
@josephholsten
Copy link
Author

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

@tpope
Copy link
Owner

tpope commented Mar 25, 2017

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.

@josephholsten
Copy link
Author

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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants