> The scheme is quite simple. Use Slime to call SBCL as inferior lisp. To make things easier, ask Emacs to open a nonexistent Lisp file:
>
> ~$ emacs garbage.lisp &
>
> Emacs will open a blank file, with Slime and all the rest of Lisp magics. Choose the option 'Lisp/Run inferior Lisp'. This action will launch SBCL. Split the SBCL window with C-x 2. On the split window, type the command
>
> M-x term
>
> Emacs will open a terminal on one of the two split windows. You can start Vim up on this terminal. When Emacs asks which program you want to run, write Vim.
>
> /usr/local/bin/vim
>
A few comments. When you run Vim inside Emacs, the start-up is almost instantaneous, like in a terminal. Emacs poses no overhead.
If you want to go from the Vim window to the other window, you must type C-c o, instead of C-x o. In order to return to the Vim window, you need to type C-x o, which is the Emacs command that goes to the other window. You can find this information about the term-mode in the GNU-Emacs Manual. There I learned that each character is sent directly to Vim, except for the Term escape character, normally C-c.
The GNU-Emacs Manual also says that one can send a literal C-c to the Vim by typing C-c C-c. Therefore, I can enter Vim normal mode by pressing either Esc or C-c C-c
The manual also says that C-c char is equivalent to C-x char in normal Emacs. For example, C-c o invokes the global binding of C-x o, which is normally 'other-window'. Thus if you want to go from the Vim window to the other window without using the mouse, you may type C-c o.
To make a long story short, while you are on the Vim window, all chars are bound to Vim rules, except C-c. Therefore, if you are on the Vim window, and want to send C-x char to Emacs, you must type C-c x.
By the way, I did not know that it is possible to run Vim inside Emacs. Thank you for this piece of information. As for your question, I don't know why people are not using Emacs machinery as a platform to run Vim.
--
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
Sunday, November 25, 2012
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment