LinuxCommandLibrary

sensible-editor

sensible editing, paging, and web browsing

TLDR

Open a file in the default editor

$ sensible-editor [path/to/file]
copy


Open a file in the default editor, with the cursor at the end of the file
$ sensible-editor + [path/to/file]
copy


Open a file in the default editor, with the cursor at the beginning of line 10
$ sensible-editor +10 [path/to/file]
copy


Open 3 files in vertically split editor windows at the same time
$ sensible-editor -O3 [path/to/file1 path/to/file2 path/to/file3]
copy

SYNOPSIS

sensible-editor [OPTIONS...] sensible-pager [OPTIONS...] sensible-browser url

DESCRIPTION

sensible-editor, sensible-pager and sensible-browser make sensible de‐ cisions on which editor, pager, and web browser to call, respectively. Programs in Debian can use these scripts as their default editor, pager, or web browser or emulate their behavior.

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)

SEE ALSO

Documentation of the EDITOR, VISUAL and PAGER variables in environ(7) and select-editor(1) for changing a user's default editor

Copied to clipboard