# editor

Source: https://libtmux.org/en/tmux/3.2a/catalog/options/editor/

> Set the command used when tmux runs an editor.

option tmux3.2a

Set the command used when tmux runs an editor.

* Scope

  server

* Type

  Text

* Default

  `/usr/bin/vi`

* Set

  [`set-option`](https://libtmux.org/en/tmux/3.2a/manual/set-option/) `-s editor value`

* Read

  [`show-options`](https://libtmux.org/en/tmux/3.2a/manual/show-options/) `-s editor`

## Description[#](https://libtmux.org/en/tmux/3.2a/catalog/options/editor/#description)

Set the command used when `tmux` runs an editor.

## Releases[#](https://libtmux.org/en/tmux/3.2a/catalog/options/editor/#releases)

* [tmux 3.7c](https://libtmux.org/en/tmux/3.7c/catalog/options/editor/) : present
* [tmux 3.2a](https://libtmux.org/en/tmux/3.2a/catalog/options/editor/) : present

## Source[#](https://libtmux.org/en/tmux/3.2a/catalog/options/editor/#source)

* Defined in

  [`options-table.c:240`](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/options-table.c#L240)

* C source reference

  [`options_table`](https://libtmux.org/en/tmux/3.2a/reference/c-variable-options_table/)

* CLI Manual

  [Original manual entry](https://libtmux.org/en/tmux/3.2a/manual/full/#options-editor)

## Used by[#](https://libtmux.org/en/tmux/3.2a/catalog/options/editor/#used-by)

Library documentation that names this option.

* Rust

  [`options.generated.EDITOR`](https://libtmux.org/en/rs/latest/reference/options-generated-editor/)
