On Wed, Jul 26, 2017 at 6:37 PM, Bram Moolenaar <[email protected]> wrote: > > Try using this: :term script bash > (or whatever your shell is called). > > Then do "ls" or something and exit. Then the "bash" file should contain > exactly what was sent from the shell to the terminal. > > For me, there is no special character after the prompt, just "ls<0d>", > perhaps for you there is.
I tried this twice - first with neovim, and then later with vim, running the same command in the terminal window (date, followed by exit). There's no difference in the script file, except for the timestamps: Cursor visible (neovim): $ xterm +bc -e 'TERM=xterm nvim -u NONE -U NONE -c ":terminal script bash-nvim"' $ cat -v bash-nvim Script started on Wed 26 Jul 2017 09:05:40 PM nazri@bear:~$ date^M Wed Jul 26 21:05:41 MYT 2017^M nazri@bear:~$ exit^M Script done on Wed 26 Jul 2017 09:05:44 PM Cursor not visible (vim): $ xterm +bc -e 'TERM=xterm vim -u NONE -U NONE -c ":terminal script bash-vim"' $ cat -v bash-vim Script started on Wed 26 Jul 2017 09:05:59 PM nazri@bear:~$ date^M Wed Jul 26 21:06:05 MYT 2017^M nazri@bear:~$ exit^M Script done on Wed 26 Jul 2017 09:06:05 PM $ diff -u bash-nvim bash-vim --- bash-nvim 2017-07-26 21:05:44.284831532 +0800 +++ bash-vim 2017-07-26 21:06:05.696831149 +0800 @@ -1,6 +1,6 @@ -Script started on Wed 26 Jul 2017 09:05:40 PM +Script started on Wed 26 Jul 2017 09:05:59 PM nazri@bear:~$ date -Wed Jul 26 21:05:41 MYT 2017 +Wed Jul 26 21:06:05 MYT 2017 nazri@bear:~$ exit -Script done on Wed 26 Jul 2017 09:05:44 PM +Script done on Wed 26 Jul 2017 09:06:05 PM nazri -- -- You received this message from the "vim_dev" 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_dev" 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.
