I have used noremap <silent> ,= <C-W>= in _vimrc file to map ,= for equal windows.

Now i need to map ctrlw| for maximizing current window. Help me out here. I am using gvim with windows 7 64 bit

link|improve this question
feedback

1 Answer

try:

noremap <silent> ,_  <C-W>_<C-W><bar>

(binding it to ,_)

link|improve this answer
i wanted to use pipe character | – najam Jan 5 '11 at 11:38
pipe character is typed using shift+\ so needed code for shift :) – najam Jan 5 '11 at 11:38
<bar> is the pipe character |, check out :help bar ... or do you mean 'i want pipe to trigger the sequence'? – akira Jan 5 '11 at 13:00
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.