Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

When I try to use the shift-k (man page view function of vim), vim goes to background, and I have to run fg to put it to foreground. I tried installing man page viewer plugin, but even with that, the same behavior happens. Is this the way it is supposed to work, or am I missing some .vimrc setting to come back to vim when man exits ? (tried let $PAGER='' as well)

on Ubuntu(GNOME terminal), vim 7.3.

share|improve this question
1  
You are in a terminal window, how do you expect to run man something if Vim doesn't go to the background? –  romainl Aug 30 '13 at 7:07
    
Ok, I got the offending line of .vimrc - this one set shell=/bin/bash\ -i , this was making vim not give me the prompt to just hit ENTER and come back to vim after viewing the man page!. –  vyom Sep 2 '13 at 11:11

1 Answer 1

The following line makes vim not prompt after quitting man:

  set shell=/bin/bash\ -i

I removed this and now I get the expected behavior, with the built-in man viewer, as well as the Man plugin.

share|improve this answer

Your Answer

 
discard

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.