# sensible-editor(1) - man - phpman

> **TLDR:** Open the default editor.
>
- Open a file in the default editor:
  `sensible-editor {{path/to/file}}`
- Open a file in the default editor, with the cursor at the end of the file:
  `sensible-editor + {{path/to/file}}`
- Open a file in the default editor, with the cursor at the beginning of line 10:
  `sensible-editor +10 {{path/to/file}}`
- Open 3 files in vertically split editor windows at the same time:
  `sensible-editor -O3 {{path/to/file1 path/to/file2 path/to/file3}}`

*Source: tldr-pages*

---

[SENSIBLE-EDITOR(1)](https://www.chedong.com/phpMan.php/man/SENSIBLE-EDITOR/1/markdown)                     General Commands Manual                    [SENSIBLE-EDITOR(1)](https://www.chedong.com/phpMan.php/man/SENSIBLE-EDITOR/1/markdown)



## NAME
       sensible-editor - sensible editing

## SYNOPSIS
       **sensible-editor** [OPTIONS...]

## DESCRIPTION
       **sensible-editor** makes sensible decisions on which editor to call.  Programs in Debian can use
       this script as their default editor.  **sensible-editor** try to do in the following order:

       1      if **VISUAL** environment variable exists, execute **VISUAL** **[OPTIONS]**

       2      if **EDITOR** environment variable exists, execute **EDITOR**  **[OPTIONS]**

       3      source the contents of file _~/.selected_editor_  and,  if  **SELECTED**___**EDITOR**  environment
              variable exists execute **SELECTED**___**EDITOR**  **[OPTIONS]**

       4      run **editor** **[OPTIONS]** command

       5      finally run **nano-tiny** **[OPTIONS]** command

## SEE ALSO
       [**environ**(7)](https://www.chedong.com/phpMan.php/man/environ/7/markdown) for documentation of the EDITOR, VISUAL variables
       [**select-editor**(1)](https://www.chedong.com/phpMan.php/man/select-editor/1/markdown) for changing a user's default editor.
       [**editor**(1)](https://www.chedong.com/phpMan.php/man/editor/1/markdown) for default system wide editor.

## BUGS
       This  command  is  protected  against trivial fork bomb, when user set **EDITOR=sensible-editor**
       wider loops are still possible.

## STANDARD
       Documentation of behavior of sensible-utils under a debian system is available under  section
       11.4 of debian-policy usually installed under /usr/share/doc/debian-policy (you might need to
       install debian-policy)



Debian                                       14 Nov 2018                          [SENSIBLE-EDITOR(1)](https://www.chedong.com/phpMan.php/man/SENSIBLE-EDITOR/1/markdown)
