File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -240,19 +240,24 @@ defmodule IEx.Helpers do
240240
241241 subl path/to/file:line
242242
243+ It is important that you choose an editor command that does
244+ not block nor that attempts to run an editor directly in the
245+ terminal. Command-line based editors likely extra configuration
246+ so they open up the given file and line in a separate window.
247+
243248 Custom editors are supported by using the __FILE__ and __LINE__
244- notations. For example, vi/vim users can set `ELIXIR_EDITOR` to :
249+ notations, for example :
245250
246- ELIXIR_EDITOR="vi +__LINE__ __FILE__"
251+ ELIXIR_EDITOR="my_editor +__LINE__ __FILE__"
247252
248253 and Elixir will properly interpolate values.
249254
250255 Since this function prints the result returned by the editor,
251256 `ELIXIR_EDITOR` can be set "echo" if you prefer to display the
252257 location rather than opening it.
253258
254- Keep in mind the location may not exist when opening
255- precompiled source code, such as Elixir itself .
259+ Keep in mind the location may not exist when opening precompiled
260+ source code.
256261
257262 ## Examples
258263
You can’t perform that action at this time.
0 commit comments