Skip to content

Commit

Permalink
Treat NeoVim identically to Vim.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean1708 committed Dec 31, 2014
1 parent 3509dda commit e371135
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 e371135

Please sign in to comment.