[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re:
From: |
Ben Abbott |
Subject: |
Re: |
Date: |
Tue, 26 Jun 2012 10:23:56 -0400 |
*** Please respond at the bottom and "reply-all" so that those arriving late
can follow along ***
On Jun 26, 2012, at 10:16 AM, Hormatzhan Yiltiz wrote:
> On Tue, Jun 26, 2012 at 9:25 PM, Ben Abbott <address@hidden> wrote:
>
>> On Jun 26, 2012, at 3:44 AM, Hormatzhan Yiltiz wrote:
>>
>> > Hi,
>> > I am very thankful for you dedicating in answering questions about GNU
>> > Octave. Here is a little question I'd like to ask.
>> > I am using Octave 3.2.4 configured for "i686-pc-linux-gnu" in 32-bit
>> > Ubuntu 12.04 LTS i386. I like Vim, and I added the following line to
>> > ~/.octaverc :
>> >
>> > edit editor "gvim %s &"
>> >
>> > It brings gvim as expected. Here are 2 questions:
>> > 1. But I'd like to use vim, so could it be possible to edit a file through
>> > vim in octave? Say you want to edit foo.m, and you edit it. After
>> > finished, you just quit vim to go back to octave for other work.
>> >
>> > 2. On the other hand, gvim brings another window. So I'd like to edit
>> > foo.m and after writing the file I just want to run it within octave
>> > WITHOUT actually quittting gvim. But for the moment, octave waits gvim to
>> > quit before accepting any further input. So is this because the mark & did
>> > not worked in the code? Please help me.
>>
>> For vim ...
>>
>> edit editor "vim %s"
>> edit mode sync
>>
>> This will allow you to edit using vim in Octave's command window.
>>
>> For gvim, you'll want to edit in asynchronous mode (both Octave and the
>> editor are active at the same time)
>>
>> edit editor "gvim %s"
>> edit mode async
>>
>> Ben
>
> Thanks, it worked fine with gvim.
> As for vim, vim complained that "Vim: Warning: Output is not to a terminal ",
> and I could not see vim open, but I had to :q! to go back to octave command
> line. Is there any convenient way to deal with this warning?
Please verify you set the mode to "sync".
edit editor "vim %s"
edit mode sync
I'm running Octave-3.6.2. Your's is rather old. It is possible that something
relevant has changed.
Ben