NEDIT(1)
π NEDIT(1) β like, the NEdit manual page bestie π
okay so you found the NEDIT(1) page, the NEdit documentation one, and honestly? you're about to have a great time. grab a snack. π
πΈ NAME πΈ
NEdit β it's a Text Editor. that's the whole name. iconic behaviour honestly. π
β¨ SYNOPSYS β¨
(no fr that's how it's spelled up top, we don't fix it, we respect it)
nedit [-read] [-create] [-line n | +n] [-server]
[-do command] [-tags file] [-tabs n]
[-wrap] [-nowrap] [-autowrap]
[-autoindent] [-noautoindent]
[-autosave] [-noautosave]
[-lm languagemode] [-rows n] [-columns n]
[-font font]
[-geometry|-g geometry] [-iconic] [-noiconic]
[-display [host]:server[.screen]]
[-xrm resourcestring]
[-svrname name] [-import file]
[-background|-bg color] [-foreground|-fg color]
[-tabbed] [-untabbed] [-group]
[-V|-version] [-h|-help] [--] [file...]
look at her. all those little flags. a whole wardrobe. π
π¦ DESCRIPTION π¦
so NEdit is a standard GUI (that's Graphical User Interface, bestie) style text editor for programs and plain-text files. it's giving classic desktop app, and we love that for it.
it hands you mouse based editing plus a streamlined editing style, and that whole vibe is based on the popular Macintosh and MS Windows editors β so if you're an X workstation or X terminal user, it'll feel lowkey familiar. no cap. β¨
π OPTIONS π
okay this is the part where everyone scrolls fast, so let's go slow. every single one. no skipping. periodt.
-readβ opens the file read-only, no matter what the actual file protection says. the file can't stop you, but this flag will. π-createβ if the file doesn't exist, it won't warn you about creating it. no drama, just vibes.-line n,+nβ jumps you straight to line number n. main character entrance. π-serverβ designates this session as an NEdit server, so it can process commands coming from thenc(1)program.nc(1)is how you wire NEdit into code development environments, mailers, etc., or honestly just as a quick way to open files from the shell command line without starting a brand new NEdit session. teamwork! π«Ά-do commandβ executes an NEdit macro or action on the file that follows the-doargument on the command line.-dois especially useful fromnc(1), wherenc -docan remotely execute commands inside annedit -serversession. remote control, but make it text editing. π₯-tags fileβ loads a file of directions for finding definitions of program subroutines and data objects. the file has to be in the format generated by Exuberant Ctags, or by the standard Unixctags(1)command. iykyk.-tabs nβ sets tab stops every n characters. your tabs, your rules. β-wrap,-nowrapβ wraps long lines at the right edge of the window instead of letting them continue past it. that's Continuous Wrap mode. π-autowrap,-noautowrapβ wraps long lines when the cursor reaches the right edge of the window, by inserting newlines at word boundaries. that's Auto Newline Wrap mode. πΈ-autoindent,-noautoindentβ maintains a running indent. your indentation is being looked after. π-autosave,-noautosaveβ maintains a backup copy of the file being edited, under the name~filename(on Unix) or_filename(on VMS). safety net, bestie. π§-lm languagemodeβ the initial language mode used for editing succeeding files.-rows nβ default height in characters for an editing window.-columns nβ default width in characters for an editing window.-font font,-fn fontβ the font for text being edited. the font for menus and dialogs can be set with-xrm "*fontList:font". β¨-geometry geometry,-g geometryβ the initial size and/or location of editor windows. the geometry argument has the form:
[<width>x<height>][+|-][<xoffset>[+|-]<yoffset>]
where <width> and <height> are the desired width and height of the window, and <xoffset> and <yoffset> are the distance from the edge of the screen to the window β + for top or left, - for bottom or right. -geometry can be specified for individual files on the command line. so many coordinates. so many little numbers. obsessed. π
-iconic,-noiconicβ initial window state for succeeding files.-display [host]:server[.screen]β the name of the X server to use. host specifies the machine, server specifies the display server number, and screen specifies the screen number. host or screen can be omitted, and they default to the local machine, and screen 0. defaults do be defaulting. π¦-background color,-bg colorβ background color. the background color for text can be set separately with-xrm "nedit*text.background: color".-foreground color,-fg colorβ foreground color. the foreground color for text can be set separately with-xrm "nedit*text.foreground: color".-xrm resourcestringβ sets the value of an X resource, overriding a default value. override! π€-svrname nameβ when starting nedit in server mode, names the server, so it only responds to requests whennc(1)is given a corresponding-svrnameargument. by naming servers you can run several at the same time and direct files and commands specifically to any one of them. specifying a non-empty name automatically designates this session as an NEdit server, as though-serverwere specified. multitasking queen. π-import fileβ loads an additional preferences file on top of the existing defaults saved in yournedit.rcfile. to incorporate macros, language modes, and highlight patterns and styles written by other users, run nedit with-import <file>, then re-save yournedit.rcfile with Preferences->Save Defaults. sharing is caring. π«Ά-tabbedβ opens all subsequent files in new tabs. resets the-groupoption.-untabbedβ opens all subsequent files in new windows. resets the-groupoption.-groupβ opens all subsequent files as tabs in a new window.-V,-versionβ prints version and build information. this is the one to mention when reporting bugs and problems, bestie. do not skip it. π-h,-helpβ prints the command line help and then exits. bye! π¨--β treats all subsequent arguments as file names, even if they start with a dash. this exists so NEdit can access files that begin with the dash character. the dash can't hide from us. π
π ENVIRONMENT π
DISPLAY
NEdit requires an X-based workstation or X-Terminal. if you've used telnet or rlogin to access the host Unix system, set the Unix environment variable for your display:
csh-type shells:
% setenv DISPLAY devicename:0
sh-type shells:
% DISPLAY=devicename:0 && export DISPLAY
pick your shell, live your truth. β¨
NEDIT_HOME
this environment variable can be set to the name of a directory. that directory will then be used instead of $HOME/.nedit as the base directory for NEdit's special files (see section FILES, below).
this variable is new to NEdit 5.4. baby of the family. πΌ
π FILES π
from version 5.4 on, NEdit creates a directory in which NEdit's special files reside. this directory is named .nedit by default. cute little home base. π
nedit.rcβ this is an X resource file which contains most user settings for NEdit. it is read at startup and written by selecting the itemSave Defaults...in the Preferences menu.
do not edit this file by hand β all settings can be reached via the Default Settings menu. hands off, bestie. π
ββοΈ
nedit.historyβ the list of recently opened files.
do not edit this file by hand. seriously. π
autoload.nmβ a file that can contain a number of NEdit Macro Language statements and subroutine definitions. the statements will be executed when an NEdit server starts, and the subroutines will be loaded for later reference. this file will not be created or modified by NEdit (unless you load it and edit it, of course β then it's all you, babe). πΈ
note that NEdit still supports the older names for these files, which were used by version 5.3 and below. those file names are $HOME/.nedit, $HOME/.neditdb and $HOME/.neditmacro, respectively. the old naming scheme will be used if NEdit detects that $HOME/.nedit is a regular file and NEDIT_HOME isn't set. nostalgia core. β
see also the entry for NEDIT_HOME under ENVIRONMENT, above.
π₯ NOTES π₯
for more information see NEdit's online help, or nedit.doc in the NEdit distribution kit.
NEdit sources, executables, additional documentation, and contributed software are available from the NEdit web site at http://nedit.org. go visit her. π
π« SEE ALSO π«
nc(1), X(1), mwm(1), ctags(1), etags(1)
the whole friend group. π
π AUTHORS π
NEdit was written by Mark Edel, Joy Kyriakopulos, Christopher Conrad, Jim Clark, Arnulfo Zepeda-Navratil, Suresh Ravoor, Tony Balinski, Max Vohlken, Yunliang Yu, Donna Reid, Arne Forlie, Eddy De Greef, Steve LoBasso, Alexander Mai, Scott Tringali, Thorsten Haude, Steve Haehn, Andrew Hood, Nathaniel Gray, and TK Soh.
absolute legends, every single one. π«Ά
the regular expression matching routines used in NEdit are adapted (with permission) from original code written by Henry Spencer at the University of Toronto.
syntax highlighting patterns and smart indent macros were contributed by: Simon T. MacDonald, Maurice Leysens, Matt Majka, Alfred Smeenk, Alain Fargues, Christopher Conrad, Scott Markinson, Konrad Bernloehr, Ivan Herman, Patrice Venant, Christian Denat, Philippe Couton, Max Vohlken, Markus Schwarzenberg, Himanshu Gohel, Steven C. Kapp, Michael Turomsha, John Fieber, Chris Ross, Nathaniel Gray, Joachim Lous, Mike Duigou, Seak Teng-Fong, Joor Loohuis, Mark Jones, and Niek van den Berg. π
π COPYRIGHT π
this program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
in addition, as a special exception to the GNU GPL, the copyright holders give permission to link the code of this program with the Motif and Open Motif libraries (or with modified versions of these that use the same license), and distribute linked combinations including the two. you must obey the GNU General Public License in all respects for all of the code used other than linking with Motif/Open Motif. if you modify this file, you may extend this exception to your version of the file, but you are not obligated to do so. if you do not wish to do so, delete this exception statement from your version. your call, no pressure. π¦
this program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. see the GNU General Public License in the Help section Distribution Policy for more details.
and that's the whole page, bestie. this one was released by Debian as version 1:5.7-3 on 2020-09-12, and the manual page itself answers to NEDIT(1). slay. go edit something. πβ¨π
π¦ where this page comes from
- debian bookworm: nedit 1:5.7-3 Β· GPL-2.0-or-later WITH motif exception
- ubuntu jammy: nedit 1:5.7-3 Β· GPL-2.0-or-later WITH motif exception
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms