[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Using gvim as editor on Windows 7
From: |
Ben Abbott |
Subject: |
Re: Using gvim as editor on Windows 7 |
Date: |
Fri, 24 Jun 2011 09:11:42 -0400 |
On Jun 23, 2011, at 5:22 PM, Daryl Lee wrote:
> I just bought the newly announced book "GNU Octave Beginner's Guide" and
> discovered I should be able to redefine the default editor. My preferred
> editor is gvim, and I'm on Windows 7, Octave 3.2.4. I have not been able to
> work out the syntax for passing a filename to gvim for editing. Here's what
> I've done:
>
> edit editor "gvim"
> edit .octaverc
>
> With that I get "Create process failed..."
>
> So I spelled out the path:
>
> edit editor "C:\\Program Files (x86)\\Vim\\vim73\\gvim.exe"
> edit .octaverc
>
> With that I get a nice gvim editor, but no file opened, and this in the
> console:
>
> warning: edit: some elements in list of return values are undefined
> error: matrix cannot be indexed with .
>
> So I add %s to the command:
>
> edit editor "C:\\Program Files (x86)\\Vim\\vim73\\gvim.exe %s"
> edit .octaverc
>
> And that has no effect (gvim launched, no file, and same warnings).
>
> I'm sure I'm missing something. I know the authors of the book targeted
> Linux, so I'm wondering if someone has suggestions on how to do this with
> Windows?
>
> --
> Daryl Lee
I haven't tried this on WIndows, but with MacOS my octaverc contains ...
edit editor "mvim %s"
edit mode async
Perhaps you just need to add the second line?
Ben