- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- nedit as default editor
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-30-2002 12:19 PM
тАО07-30-2002 12:19 PM
I would like to setup nedit as a default editor.Thanks in advance.
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-30-2002 12:23 PM
тАО07-30-2002 12:23 PM
Re: nedit as default editor
There is an environmental variable named EDITOR. Set it in your suitable profile to make it default. For example, if your default shell is sh or ksh, add the following line to your .profile:
export EDITOR=nedit
Hai
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-30-2002 12:49 PM
тАО07-30-2002 12:49 PM
Re: nedit as default editor
setenv EDITOR vi
or
export EDITOR=vi
or anything like it.
This 'vi' you can change to 'nedit' if you like.
To change it for all new
users to be, also put it into /etc/skel/.profile
This profile is used when a new user is added.
To keep yourself popular, leave the choice to the users theirselves.
Regards,
Ceesjan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-30-2002 12:51 PM
тАО07-30-2002 12:51 PM
Solutionhttp://www.nedit.org/ftp/v5_3/executables/
You'll ucompress it, untar it (Note: It's a relative tarball - so be in the location where you wish it to reside. I'd suggest /usr/local/bin). It'll create a dir called nedit-5.3.
Then just make sure you path thru this dir (/path/to/nedit-5.3 & all you have to do is type nedit or nc (nedit client).
Regards,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-31-2002 09:52 AM
тАО07-31-2002 09:52 AM
Re: nedit as default editor
like elm, more, etc. If you want to set it up so that Nedit
is the default editor in the CDE front panel and in the
CDE file manager, you need to customize you CDE
settings. To do so, copy these files:
/usr/dt/appconfig/types/C/user-prefs.dt
/usr/dt/appconfig/types/C/dtwm.fp
to the directory /etc/dt/appconfig/types/C (if
making the change for all users) or to the
directory ~/.dt/types (if making the change
just for yourself). (The "~" refers to your home
directory. Also, if your locale (i.e. the $LANG
environment variable) setting is not "C", replace
"C" with your locale.)
Then modify the file user-prefs.dt so that this line:
MAP_ACTION Dtpad
becomes:
MAP_ACTION Nedit
Then modify the file dtwm.fp so that the lines:
LABEL Text Editor
PUSH_ACTION Dtpad
DROP_ACTION Dtpad
become:
LABEL Nedit Text Editor
PUSH_ACTION Nedit
DROP_ACTION Nedit
Finally, create a file called nedit.dt in the same
directory that you placed the above files in.
It should contain the following:
ACTION Nedit
{
LABEL Nedit Text Editor
ICON Dtpenpd
TYPE COMMAND
WINDOW_TYPE NO_STDIO
EXEC_STRING nedit %Args%
}
Now log out and log back in, and Nedit should
your default CDE text editor.