[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Using gvim as editor on Windows 7
From: |
Daryl Lee |
Subject: |
Using gvim as editor on Windows 7 |
Date: |
Thu, 23 Jun 2011 15:22:51 -0600 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.18) Gecko/20110616 Lightning/1.0b2 Thunderbird/3.1.11 |
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
- Using gvim as editor on Windows 7,
Daryl Lee <=