After looking 
at 
https://github.com/JuliaLang/julia/blob/1c4e8270646f7d5cab3d259f0464e6ea66e3574a/base/interactiveutil.jl#L11
 
it seems that you should set JULIA_EDITOR. It might be that your VISUAL 
variable is still set to Vim.

V

On Wednesday, 1 October 2014 15:24:30 UTC+2, Andrei Berceanu wrote:
>
> I changed the EDITOR environment variable in my profile, and now IJulia 
> returns
>     ENV["EDITOR"]
>     "gvim"
> However this does not seem to affect the @edit macro, which still tries to 
> call Vim and complains about not being in a terminal window.
>
> //A
>
> On Wednesday, October 1, 2014 3:00:27 PM UTC+2, Isaiah wrote:
>>
>> try changing your EDITOR variable to something that starts own window / 
>> can run outside of terminal.
>> On Sep 29, 2014 6:08 PM, "Andrei Berceanu" <[email protected]> wrote:
>>
>>> Is there a way to open an external text editor (say gvim) from within 
>>> IJulia? More specifically, I would like to be able to edit the definition 
>>> of a function. In the REPL I can use @edit fun() and this opens the module 
>>> where fun() is defined at the specific line. However in IJulia I get 
>>>
>>>
>>> @edit fun()
>>> Vim: Warning: Output is not to a terminal
>>> Vim: Warning: Input is not from a terminal
>>>
>>>
>>> Thanks!
>>> //A
>>>
>>>
>>>

Reply via email to