Hi Marc,

sorry, I still don't get what *exactly* one needs to do in order to achieve 
*what*.

In your original mail, you wrote that it is "for copy-pasting examples and 
doctests to the sage repl".

If I understand correctly, repl is abbreviation for read-eval-print-loop. I 
guess that' what I call "command line version of Sage". That makes me 
wonder two things:
- By "copy-pasting doctests to the sage repl", do you mean that you mark 
the doctest including the expected output, and when you paste it to Sage 
then the expected output is automatically stripped, which is of course 
useful because it is Sage's job to compute that output?
- How is vim involved in my interaction with Sage? Do you mean the 
following: Open some file in vim that contains doctests, mark a doctest in 
vim, then go to the Sage command linel and paste what you've copied?

Best regards,
Simon

On Monday, March 9, 2020 at 4:08:20 PM UTC+1, Marc Mezzarobba wrote:
>
> Sébastien Labbé wrote: 
> > Should I understand that it filters out the output? Can you tell how 
> > you use it? 
>
> It only works linewise, and is mapped to <localleader>Y, which is 
> probably something like \Y depending on your setup. You can use it 
> either by selecting some text in visual mode and typing \Y, or typing \Y 
> followed by a motion (e.g. \Yap). It will keep the input lines only and 
> strip the sage: and ....: markers. 
>
> -- 
> Marc 
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/50fb1c9d-d1ea-4662-b243-87e3a132783b%40googlegroups.com.

Reply via email to