On Monday, November 5, 2012 3:27:12 PM UTC-2, Taylor Hedberg wrote:
> If I have managed to successfully extract the essence of your question
> 
> from your message, it basically comes down to "How do I run interactive
> 
> programs (e.g. an SBCL REPL) within a Vim buffer?".


You are right. This is exactly what I want. By the way, soon after my post, a 
member of a local vim user group suggested the installation of GNU readline and 
rlwrap. It seems that the REPL generates a lot of escape chars, that was 
confusing ConqueTerm. After the installation of these two programs, the REPL is 
behaving quite well. However, there is a catch. One cannot enter COMMAND mode 
on the REPL window.

My idea is to write a script that puts a tag or a title on the REPL window. 
Then it remaps the ESC key. The new key checks whether the user is on the REPL 
window. If the user is on the REPL window, ESC will print a message telling 
him/her that one cannot enter command mode on the REPL window.

Of course, the user must press Ctrl-O Ctrl-ww to go from the REPL window to the 
text window, since COMMAND mode is not available any more. On the text window, 
the command mode works normally.

I believe that this kind of script is very simple in vimscript. I suppose that 
vim has something like major modes à la Emacs. If so, all one has to do is 
check the mode. If the mode is REPL, then the ESC key will not put the user in 
command mode. By the way, the ESC key could go to the text window, instead of 
activating the command mode. On the text window, the ESC key would work 
normally.

Could you sketch a script like the one I have described above? I mean, if it is 
as simple, as I believe it is.

-- 
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

Reply via email to