Tuesday, March 24, 2015

Re: Is there a way to cause vim to display the console screen without actually shelling to it?

On Tuesday, March 24, 2015 at 4:55:09 PM UTC-4, Gary Johnson wrote:
> On 2015-03-24, Adrian wrote:
> > On Tuesday, March 24, 2015 at 2:19:59 PM UTC-4, Christian Brabandt wrote:
> > > Does that help:
> > > :set t_ti= t_te=
> >
> > Thanks Christian,
> >
> > No, that just disables saving the terminal prior to (re)entering
> > vim. I want to switch to the screen prior to (re)entering vim
> > without having to leave vim.
> >
> > I.e. I want a command that would switch to the command line
> > without generating a prompt or a 'Press ENTER or type command to
> > continue' message, but would go back to the vim screen when I
> > press any key.
> >
> > Thanks again,
>
> I played around a little with these two commands, which sort of
> worked, but also confused vim so that I had to refresh the display
> with ^L after the second one.
>
> :call system(">/dev/tty tput rmcup")
> :call system(">/dev/tty tput smcup")

Hmmm, that's interesting. I've also found out about the command:

:silent read -sN 1

Which requires bash, but still works and doesn't add characters to the terminal screen.

Now I need to get up to speed with the scripting system to see if I can get that command to run and then refresh the screen.


A


> Have you tried using tmux or screen? Tmux will let you run vim in
> one screen and a shell in another and easily switch back and forth
> between the two. That's not what you asked for, but may be close
> enough to meet your needs.

Yeah, I've thought of using those, but

--
--
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 vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: