Hi Leonardo!

On Mi, 14 Aug 2013, Leonardo Barbosa wrote:

> Hello all,
> 
> I have the following map in my .vimrc
> 
> map _ <C-W>_
> 
> How can i make it so the map toggles <C-W>_  and <C-W>=?

This is actually harder than thought, because there is no easy way from 
Vim script to determine the current state of the window (i.e. should the 
current window be maximized or made equal on the next call) so you have 
to use some state variable. This has however the problem, that it 
doesn't know, when you used <C-W>= or <C-W>_ manually.

Mit freundlichen Grüßen
Christian
-- 
Wenn uns jemand seinen Schmerz und sein Leid klagt, ist es noch
besser, die eigene Betroffenheit und Ratlosigkeit zu zeigen, als mit
glatten und noch so richtigen Redensarten 'trösten' zu wollen.
                -- H. Bauer

-- 
-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to