Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question


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

(binding it to ,_)

share|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

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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