Skip to content

Commit

Permalink
Merge pull request #9526 from Sean1708/editnvim
Browse files Browse the repository at this point in the history
Make Julia play nice with NeoVim.
  • Loading branch information
ihnorton committed Dec 31, 2014
2 parents 3509dda + e371135 commit 78a7175
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/interactiveutil.jl
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function edit(file::AbstractString, line::Integer)
no_line_msg = "Unknown editor: no line number information passed.\nThe method is defined at line $line."
if beginswith(edname, "emacs") || edname == "gedit"
spawn(`$edpath +$line $file`)
elseif edname == "vim" || edname == "nano"
elseif edname == "vim" || edname == "nvim" || edname == "nano"
run(`$edpath +$line $file`)
elseif edname == "textmate" || edname == "mate" || edname == "kate"
spawn(`$edpath $file -l $line`)
Expand Down

0 comments on commit 78a7175

Please sign in to comment.