vim terminal

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

vim terminal

Joseph Dornisch-2
I just started to use the :term command yesterday. Is there a simple way to clear the contents of the window (without closing it and opening a new terminal)? I'd like to be able to clear the contents, while remaining the command line history.

--
--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CAFim3NJZPnRU6ZYhr4EfhpuebG97qa_%2Bxsgqno3wmWyLr6Dznw%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: vim terminal

tooth pik
are you looking for the clear command?  it's ... clear

On Fri, Nov 8, 2019 at 1:25 PM Joseph Dornisch <[hidden email]> wrote:

>
> I just started to use the :term command yesterday. Is there a simple way to clear the contents of the window (without closing it and opening a new terminal)? I'd like to be able to clear the contents, while remaining the command line history.
>
> --
> --
> 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 [hidden email].
> To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CAFim3NJZPnRU6ZYhr4EfhpuebG97qa_%2Bxsgqno3wmWyLr6Dznw%40mail.gmail.com.

--
--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CALfSX1xmOhgndOWBLD%3DT2%3DZ7fkbLxx-qckqd48ghUig4k88Q4g%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: vim terminal

Joseph Dornisch-2
clear will work for a terminal that makes use of it (which I guess is most terminals), but I am working on Windows, and clear does nothing.
I tried 'cls', which seems to work fine from a dos window, but in vim, it just resets the screen, but I can still scroll through the console history.
Basically, I want to easily be able to reset the current prompt to line 1, so I can compile (or whatever), and then go back to the beginning of the console window without finding this spot in the history.
e.g.
prompt> clear (or some vim command)
prompt> ant clean all
lots of error messages
prompt> <C-\>Ngg
...
This might work fine in Linux with clear, but I don't really get the behavior I want in Windows with clr. I suppose I could set a mark and then jump to the mark.

On Fri, Nov 8, 2019 at 3:51 PM tooth pik <[hidden email]> wrote:
are you looking for the clear command?  it's ... clear

On Fri, Nov 8, 2019 at 1:25 PM Joseph Dornisch <[hidden email]> wrote:
>
> I just started to use the :term command yesterday. Is there a simple way to clear the contents of the window (without closing it and opening a new terminal)? I'd like to be able to clear the contents, while remaining the command line history.
>
> --
> --
> 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 [hidden email].
> To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CAFim3NJZPnRU6ZYhr4EfhpuebG97qa_%2Bxsgqno3wmWyLr6Dznw%40mail.gmail.com.

--
--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CALfSX1xmOhgndOWBLD%3DT2%3DZ7fkbLxx-qckqd48ghUig4k88Q4g%40mail.gmail.com.

--
--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CAFim3NJ3whXxawJjC1ph7Piv9cN4Oh5dNw68EWcgNZcXRgxh7Q%40mail.gmail.com.