0

When I close vim in linux shell bash, part of it viewing is still seen, usually root, but in some other users, usually other than root, vim closed means no viewing document is seen. Where/how can I manage/set this?

Thank you

4
  • Interesting. Which one's the distribution?
    – 174140
    Jan 24, 2014 at 12:24
  • Does this happen when you run vim in a virtual console?
    – user260419
    Jan 24, 2014 at 14:13
  • It sounds like your $TERM variable is set wrong.
    – FDinoff
    Jan 26, 2014 at 6:04
  • I use CentOS release 6.3. I see parts of the file that was opened/viewed when :q was executed. TERM was set to linux. Changed to TERM=xterm and it works fine :) thank you very much FDinoff (but it does change my colorscheme to default, before was evening, I do not know why)
    – andrej
    Jan 29, 2014 at 6:53

1 Answer 1

0

quick googling brings a solution: add to your ~/.vimrc au VimLeave * :!clear

but the problem seem to be more comlicated:

How to replace vim screen buffer with previous bash activity after quitting?

1
  • now it clears the terminal so there is no content, but I would like to be the previous line the line that I start vim, now it is blank screen. It is a CentOS release 6.3 , I also use 6.5, that works fine. Thank you very much
    – andrej
    Jan 27, 2014 at 12:25

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .