Resize current window

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Resize current window

Narayanan S. Iyer
When I press a key say <F5>, I want current window to have max. width
and max. height

Problem:

map <F5> ^W^_ works fine and sets height to max.

map <F5> ^W| does not set width to max.

Which is the correct mapping I should use ?

Any help is appreciated.
Reply | Threaded
Open this post in threaded view
|

Re: Resize current window

Mathias Michaelis
Hi Narayanan

> Problem:
>
> map <F5> ^W^_ works fine and sets height to max.
> map <F5> ^W| does not set width to max.
>
map <F5> <C-W>_<C-W><bar>

With kind regards
Mathias