Results 1 to 3 of 3

Thread: how do i change default text editor to nedit

  1. #1
    Join Date
    May 2012
    Beans
    12

    how do i change default text editor to nedit

    The default text editor in ubuntu 12.04 is gedit. I much prefer nedit, and installed nedit on my system. Now, how do I tell ubuntu nedit is the default text editor so nedit gets run instead of gedit when I open a text file?

  2. #2
    Join Date
    Jan 2012
    Location
    Kerry/Dublin
    Beans
    109

    Re: how do i change default text editor to nedit

    Code:
    # update-alternatives --config editor
    This may not work for graphical editors such as gedit or nedit, though. I can't say because I only ever use vim.


    Here's a way of changing vi to run vim instead, which may be easily reworked to change gedit use to nedit. It may not work, and may cause some wreckage in your system, so definitely check out how gedit ties into your system and what's actually going on before doing that.

    A worthwhile command to run would be
    Code:
    # apt-get -s remove gedit
    as this will show you what other packages(if any) would be removed if you were to remove gedit, since the -s flag makes apt-get only pretend to perform the action.


    EDIT: Alternatively, see this thread outlining what seems to be exactly what you want. http://ubuntuforums.org/showthread.php?t=299086
    Last edited by LiamOS; June 2nd, 2012 at 10:07 PM.

  3. #3
    Join Date
    Jun 2012
    Beans
    1

    Re: how do i change default text editor to nedit

    cp /usr/bin/gedit /usr/bin/gedit.save
    ln -s /usr/bin/(ur edidtor) /usr/bin/gedit


Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •