Hacker News new | past | comments | ask | show | jobs | submit login

While we are talking about screen - I'd really like to be able to highlight text in VIM (using the visual mode) and then be able to paste that into another screen. Does anyone know how to do this?



ScreenShell. It leverages screen to create a viable REPL-buffer for vim, for any language that has an interactive interpreter.

http://www.vim.org/scripts/script.php?script_id=2711

Here's an article describing how to use it with lisp:

http://www.ktaylor.name/2009/11/vim-screen-lisp-programming-...

And finally, some key mappings to bind <C-c><C-c> to sending the current paragraph or selection to the interpreter, from any mode.

http://gist.github.com/278733


Found this about a week ago and am loving it. Almost all of my time is spent in Python or LaTeX, and having either ipython or bash open in a small window just a keystroke away is brilliant!


Thanks!


I don't know off hand how to do it using a vim selection, but you can use screen selections. ^a, [, then navigation keys and space to select, ^a, ] to paste.


You could just copy into the global system buffer instead of vim's buffer. Highlight, then "+y (or d, p, etc.) (Yes you type the quotation mark and plus.) (And vim needs to be built with xterm, I think.)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: