neovim
neovim copied to clipboard
Shell interaction
- Is there currently anything like this for Vim?
- Use acme
win
command as a model - Output point is the point after which input is considered
- Enter transfers text after output point to
stdin
of shell -
stdout
of shell is placed after output point - Pressing enter or printing
stdout
advances output point - If the output point is deleted, recreate as last line
- Can insert text anywhere
- Per Russ cox video on acme
- Jump to last line would take you to last character if no command entered
- Could execute by reference to vim line number
- Middle click executes selection in this context
- Scroll down to show output with some space if possible
- Cannot enter insert mode around prompt - how does acme enforce this?
- Unsure what should happen if you try and
O
on last line (execute current line)? Or enter is command that sends to stdin
@fmoralesc - FYI
Hmm... for a couple days, I was experimenting with the idea of implementing a shell in pure vimscript. Doesn't work very well, but... https://gist.github.com/splinterofchaos/4b5134c7a9d33f29cedd
@splinterofchaos - great! I had a proof of concept working a couple of months ago in Go (!). Very basic, but it worked. I need to resurrect the Go package today however because it has fallen behind.