在 2016年5月26日星期四 UTC+8下午5:44:51,Christian Brabandt写道:
> Hi skywind3000!
> 
> On Mi, 25 Mai 2016, skywind3000 wrote:
> 
> > Starting working in freebsd, I notice the experience of shell command (!) 
> > is quite different in linux.
> > 
> > for example, ":!python %" in linux will clear the screen first and show the 
> > output of previous command and after
> > executing finished it returns to vim
> > 
> > but, ":!python %" in freebsd will scroll vim screen up and output directly 
> > below vim gui without 
> > clear the screen and show the previous output.
> > 
> > Someone in stackoverflow said ":!clear; xxx" could be useful if I want to 
> > clear the screen in freebsd, 
> > but it still can't show me the previous command output.
> > (http://stackoverflow.com/questions/6885792/clear-screen-before-bang )
> > 
> > Is there an option or building config for me to change the bang(!) 
> > experience in freebsd to linux version ?
> 
> Sounds like in freebsd your vim is not switching screens. Please read
> `:h xterm-screens` it explains the problem and how to configure your vim 
> for it.
> 
> 
> Best,
> Christian
> -- 
> Der religiöse Mensch liebt es, für sein Brauchtum zu kämpfen, aber er
> haßt es, nach dessen ursprünglichen Sinngehalt zu leben.
>               -- Henning Venske

Thanks very much , very useful reply.
problem is solved by setting t_ti/t_te in .vimrc 

-- 
-- 
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/d/optout.

Reply via email to