Skip to content

Commit

Permalink
Add gvim support in edit (#21873)
Browse files Browse the repository at this point in the history
Currently `gvim` is not recognized by `edit(path, line)`. I recommend to add it with option to run in background turned on.
  • Loading branch information
bkamins authored and ararslan committed May 18, 2017
1 parent 6ba63e5 commit cc7bd6c
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 @@ -40,7 +40,7 @@ function edit(path::AbstractString, line::Integer=0)
end
background = true
line_unsupported = false
if startswith(name, "emacs") || name == "gedit"
if startswith(name, "emacs") || name == "gedit" || startswith(name, "gvim")
cmd = line != 0 ? `$command +$line $path` : `$command $path`
elseif startswith(name, "vim.") || name == "vi" || name == "vim" || name == "nvim" || name == "mvim" || name == "nano"
cmd = line != 0 ? `$command +$line $path` : `$command $path`
Expand Down

0 comments on commit cc7bd6c

Please sign in to comment.