sensible-editor

sensible editing, paging, and web browsing

TLDR

Open a file in the default editor

>_ sensible-editor [file]
copy

Open a file in the default editor, with the cursor at the end of the file

>_ sensible-editor + [file]
copy

Open a file in the default editor, with the cursor at the beginning of line 10

>_ sensible-editor +10 [file]
copy

Open 3 files in vertically splitted editor windows at the same time

>_ sensible-editor -O3 [file_1] [file_2] [file_3]
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
free 100$ digital ocean credit