The Notebook Review forums were hosted by TechTarget, who shut down them down on January 31, 2022. This static read-only archive was pulled by NBR forum users between January 20 and January 31, 2022, in an effort to make sure that the valuable technical information that had been posted on the forums is preserved. For current discussions, many NBR forum users moved over to NotebookTalk.net after the shutdown.
Problems? See this thread at archive.org.

    Your preferred text editor? Nano, Gedit, Kwrite, other?

    Discussion in 'Linux Compatibility and Software' started by Thomas, Jun 9, 2008.

  1. Thomas

    Thomas McLovin

    Reputations:
    1,988
    Messages:
    5,253
    Likes Received:
    0
    Trophy Points:
    205
    I prefer nano.
     
  2. Gintoki

    Gintoki Notebook Prophet

    Reputations:
    2,886
    Messages:
    6,566
    Likes Received:
    0
    Trophy Points:
    205
    Gedit is my favorite, but when i'm in the CLI with no way to get to the GUI i use Nano just fine. I'm a firm hater of KDE so i wouldn't even think of Kwrite.
     
  3. blackbird

    blackbird Notebook Deity

    Reputations:
    584
    Messages:
    1,546
    Likes Received:
    0
    Trophy Points:
    55
    Usually when editing important files inside the desktop environment such as xorg.conf, I do the equivalent of "sudo gedit /etc/X11/xorg.conf"

    This way I can clearly see the entire document, its much better layed out and I can edit it with ease.

    When troubleshooting and no gui available nano does the job well, vim although more capable is just a hassle to use at times (at first I couldn't even figure out how to exit vim after editing the file)



    PS: Calvin, when did you become a Linux junkie, thought you were one of the "go to" guys for Windows stuff.
     
  4. Thomas

    Thomas McLovin

    Reputations:
    1,988
    Messages:
    5,253
    Likes Received:
    0
    Trophy Points:
    205
    I mad him do it ;)
     
  5. Gintoki

    Gintoki Notebook Prophet

    Reputations:
    2,886
    Messages:
    6,566
    Likes Received:
    0
    Trophy Points:
    205
    I'm still a go to guy, i've just decided to join the Linux ranks. I got rid of vista on my machine and use Linux exclusively. I've done a lot of reading so i'm slowly becoming a linux "go to" guy. =]
    EDIT: It's lies than Tom spreads, lies. I made myself do it, he just helped me elope. =P
     
  6. Thomas

    Thomas McLovin

    Reputations:
    1,988
    Messages:
    5,253
    Likes Received:
    0
    Trophy Points:
    205
    LOL, if walking you through i counts ;)
    j/k( I did walk him through though)
     
  7. Gintoki

    Gintoki Notebook Prophet

    Reputations:
    2,886
    Messages:
    6,566
    Likes Received:
    0
    Trophy Points:
    205
    Well that was for Xubuntu on my old desktop which i don't use so it still doesn't count. =P I installed it myself on this one. About 7 times now.
     
  8. The Fire Snake

    The Fire Snake Notebook Virtuoso

    Reputations:
    426
    Messages:
    2,889
    Likes Received:
    0
    Trophy Points:
    55
    If it's for programming or script/config file editing then vi and emacs. If I just want to create a basic text file with notepad type capabilities I like Kate. If I want more robust formatting then Open office.
     
  9. benx009

    benx009 Notebook Evangelist

    Reputations:
    184
    Messages:
    663
    Likes Received:
    0
    Trophy Points:
    30
    Gedit in GNOME, Kate in KDE. Of the two, I'm going to have to lean towards Gedit since I prefer the Gnome GUI more...
     
  10. prol91

    prol91 Notebook Consultant

    Reputations:
    54
    Messages:
    145
    Likes Received:
    0
    Trophy Points:
    30
    I use vim in CLI or kwrite in GUI
     
  11. srunni

    srunni Notebook Deity

    Reputations:
    96
    Messages:
    854
    Likes Received:
    0
    Trophy Points:
    30
    You forgot vi! I always use vi in CLI.
     
  12. JollyGreenGiant

    JollyGreenGiant Notebook Consultant

    Reputations:
    23
    Messages:
    146
    Likes Received:
    0
    Trophy Points:
    30
    Notepad!

    Just kidding, Gedit.
     
  13. pixelot

    pixelot Notebook Acolyte

    Reputations:
    3,732
    Messages:
    6,833
    Likes Received:
    0
    Trophy Points:
    205
    Gedit always messes up my formatting in my Windows .txt files...
     
  14. theZoid

    theZoid Notebook Savant

    Reputations:
    1,338
    Messages:
    5,202
    Likes Received:
    22
    Trophy Points:
    206
    Kwrite....sometimes Kate.....both for editing files, etc.
     
  15. atbnet

    atbnet Notebook Prophet

    Reputations:
    5,868
    Messages:
    5,889
    Likes Received:
    2
    Trophy Points:
    206
    I use Gedit if I am on the GIU. Otherwise through SSH I use Vim.
     
  16. jeffsmythe

    jeffsmythe Notebook Geek

    Reputations:
    97
    Messages:
    98
    Likes Received:
    0
    Trophy Points:
    15
    Man, I can't believe this hasn't tuned into a vi/emacs flamefest. A couple thoughts on this:

    1. Most people here are relatively new to linux, so may not know much about either of these editors, neither being particularly newbie friendly.
    2. This is a laptop board more than a linux board.

    I'll put in my vote for (x)emacs. What more could you want than your own OS inside an editor?

    All that said, for those who value productivity, I suggest either vi or emacs. Once you get past the steep learning curve, you can do wonders. I will admit, from a pure productivity perspective, certain tasks (coding Java/C++ for example) may be better within an IDE like eclipse where you have auto-complete, on-the-fly syntax checking etc., but for many, many things, it's tough to beat these old-school eds.
     
  17. f4ding

    f4ding Laptop Owner

    Reputations:
    261
    Messages:
    2,085
    Likes Received:
    0
    Trophy Points:
    55
    Seriously, once you try vi (or emacs), and see how fast you can do things with it, you won't want to use anything else.
     
  18. srunni

    srunni Notebook Deity

    Reputations:
    96
    Messages:
    854
    Likes Received:
    0
    Trophy Points:
    30
    What more could I want? Pinkies that aren't all swollen from pushing modifier keys after I'm done editing. I'll stick with vi, tyvm.
    http://briancarper.net/2008/06/08/emacs-pinky/:
    Sorry I couldn't resist :p


    Or you could have both vi and Eclipse: http://www.satokar.com/viplugin/ or http://vimplugin.org/ (I've only tried the first, as I heard it was better).

    Yeah, getting past the learning curve is the hardest part. Until you do, it seems completely useless. That's probably what keeps them from being widely used.
     
  19. theZoid

    theZoid Notebook Savant

    Reputations:
    1,338
    Messages:
    5,202
    Likes Received:
    22
    Trophy Points:
    206
    Ok, now I'm using emacs (x)
     
  20. Gintoki

    Gintoki Notebook Prophet

    Reputations:
    2,886
    Messages:
    6,566
    Likes Received:
    0
    Trophy Points:
    205
    I think i might get into using vim.
     
  21. moo.mike.moo

    moo.mike.moo Notebook Geek

    Reputations:
    0
    Messages:
    98
    Likes Received:
    0
    Trophy Points:
    15
    I use vim.
     
  22. timberwolf

    timberwolf Notebook Consultant

    Reputations:
    131
    Messages:
    288
    Likes Received:
    0
    Trophy Points:
    30
    Ah, nostalgic tear for the old vi/emacs flame wars :)

    I relatively recently, last 3 years, had to learn 'vi' for work, and it has now got to the stage that when I go back to using Micro$oft Word I forget that I am on Windows and I try to esc to 'vi' command mode!
     
  23. theZoid

    theZoid Notebook Savant

    Reputations:
    1,338
    Messages:
    5,202
    Likes Received:
    22
    Trophy Points:
    206
    I'm playing around with Java programming, which version of Eclipse should I download from the Kubuntu repos?

    EDIT: Nevermind, I found it...
     
  24. wearetheborg

    wearetheborg Notebook Virtuoso

    Reputations:
    1,282
    Messages:
    3,122
    Likes Received:
    0
    Trophy Points:
    105
    vim for short edits, xemacs for serious stuff [​IMG]
     
  25. Pitabred

    Pitabred Linux geek con rat flail!

    Reputations:
    3,300
    Messages:
    7,115
    Likes Received:
    3
    Trophy Points:
    206
    Did nano/pico for a long time, but finally took the plunge and learned vi. Regular expressions make my job SO much easier... people actually come to me most of the time when they have a text file they can't work with because vi lets me do all kinds of nifty stuff ;) Not to mention that the "modal" interface just makes sense to me. (It's not really modal in a GUI sense, but that's the best word I can think of to describe it)
     
  26. srunni

    srunni Notebook Deity

    Reputations:
    96
    Messages:
    854
    Likes Received:
    0
    Trophy Points:
    30
    You sure about that? The version in the repos ( http://packages.ubuntu.com/hardy/devel/eclipse) is 3.2, which was released almost 2 years ago, whereas the newest stable release is 3.3, released a year ago. You should download it from the Eclipse website. Since it's Java (boo!), you don't have the usual autoconf setup (./configure;make;make install). You just run the shell script, which uses your Java install to launch Eclipse. However, before you do, make sure you do
    Code:
    sudo apt-get build-dep eclipse
    , so you have all the dependencies for using Eclipse from the source package.
     
  27. theZoid

    theZoid Notebook Savant

    Reputations:
    1,338
    Messages:
    5,202
    Likes Received:
    22
    Trophy Points:
    206
    srunni, thanks for the info....yes, I do have the repo version to check it out...I'll upgrade. to install, all I need is a ./install.sh ?
     
  28. jeffsmythe

    jeffsmythe Notebook Geek

    Reputations:
    97
    Messages:
    98
    Likes Received:
    0
    Trophy Points:
    15
    wearetheborg, I'm the exact same :D
     
  29. srunni

    srunni Notebook Deity

    Reputations:
    96
    Messages:
    854
    Likes Received:
    0
    Trophy Points:
    30
    No, you don't even need to do that. There's an executable file called 'eclipse' in the tarball you get from the Eclipse website. You just run it:
    Code:
    ./eclipse
    and you're good to go. So the Eclipse install can just stay in your /home folder, though you could install it to /usr/local/lib and create a symlink in /usr/local/bin if you want to. I don't suggest putting it in /usr/lib or a symlink in /usr/bin, as those are typically reserved for packages installed using the package manager.

    Also, Eclipse isn't just for Java - you can use it for plenty of other languages too, given you've installed the appropriate plugins for syntax highlighting, compiling, etc. Though Java is the only language that I've found cumbersome enough that Eclipse's lagginess is bearable in return for the automation it provides. I am using a fairly old desktop though (Pentium D 3 Ghz + 2GB DDR2 RAM), so that may be part of the problem.
     
  30. theZoid

    theZoid Notebook Savant

    Reputations:
    1,338
    Messages:
    5,202
    Likes Received:
    22
    Trophy Points:
    206
    Thanks. I realized that shortly after examing the file. I have it extracted to /opt/eclipse, and created a menu item.

    How do I make sure my Java JRE is current and set properly in Ubuntu? Thanks, I'm still in a learning phase with all this for a while yet I suppose :)
     
  31. steve p

    steve p Notebook Evangelist

    Reputations:
    156
    Messages:
    643
    Likes Received:
    2
    Trophy Points:
    31
    Gedit is my preference.
     
  32. lemur

    lemur Emperor of Lemurs

    Reputations:
    524
    Messages:
    1,024
    Likes Received:
    0
    Trophy Points:
    55
    I'm seeing a pattern here...

    I use vi for quick stuff and emacs for more involved editing.
     
  33. srunni

    srunni Notebook Deity

    Reputations:
    96
    Messages:
    854
    Likes Received:
    0
    Trophy Points:
    30
    You need to install the package sun-java6-jdk (sun-java6-jre and sun-java6-plugin are useful for other purposes as well). Make sure you're not using/don't have installed sun-java5-* packages.

    To ensure you have the right version in use, use the command
    Code:
    java -version
    This is what I get:
    Code:
    java version "1.6.0_03"
    Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
    Java HotSpot(TM) Client VM (build 1.6.0_03-b05, mixed mode, sharing)
    Make sure the numbers are the same. If not, use
    Code:
    sudo update-alternatives --config java
    to set the Java version. See https://help.ubuntu.com/community/Java for more information about this.
     
  34. Element

    Element Notebook Evangelist

    Reputations:
    192
    Messages:
    537
    Likes Received:
    1
    Trophy Points:
    31
    QFT (10 Character)
     
  35. Dire NTropy

    Dire NTropy Notebook Deity

    Reputations:
    297
    Messages:
    720
    Likes Received:
    0
    Trophy Points:
    30
    Gedit when local, vi when remote.
     
  36. pixelot

    pixelot Notebook Acolyte

    Reputations:
    3,732
    Messages:
    6,833
    Likes Received:
    0
    Trophy Points:
    205
    I guess I'll have to vote Gedit, since that's all I'm familiar with...
     
  37. theZoid

    theZoid Notebook Savant

    Reputations:
    1,338
    Messages:
    5,202
    Likes Received:
    22
    Trophy Points:
    206
    This is what I get after setting Sun Java....anything wrong?

    Code:
    john@C90s:~$ java -version
    java version "1.6.0_06"
    Java(TM) SE Runtime Environment (build 1.6.0_06-b02)
    Java HotSpot(TM) Server VM (build 10.0-b22, mixed mode)
     
  38. MrAl

    MrAl Notebook Enthusiast

    Reputations:
    13
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    15
    I use Notepad++ with wine whenever possible. Nothing is easier to use or more feature-filled for my purposes. I'm sure there's an easy way to do this that I haven't found, but I'd like to find a text editor that can be configured to run custom commands like Notepad++ does in windows like running code or opening the file in a web browser and such. Any thoughts?
     
  39. Gintoki

    Gintoki Notebook Prophet

    Reputations:
    2,886
    Messages:
    6,566
    Likes Received:
    0
    Trophy Points:
    205
    Notepadd++? Come on, use vim or gedit even. Why do you use it?
     
  40. MrAl

    MrAl Notebook Enthusiast

    Reputations:
    13
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    15
    Familiarity and customization :) Any text editors for linux that supports Octave/MATLAB, Java, C++, C#, and HTML(and other web formats), has customizable toolbars, and has customizable commands like to compile code or something? I'm sure its out there, so I'm hoping you know.
     
  41. Gintoki

    Gintoki Notebook Prophet

    Reputations:
    2,886
    Messages:
    6,566
    Likes Received:
    0
    Trophy Points:
    205
    I think vi/vim or Emacs might have that. I just started using vim not too long ago so i'm not too experienced. :eek:
     
  42. MrAl

    MrAl Notebook Enthusiast

    Reputations:
    13
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    15
    Thanks. I just took a look and vim looks promising.
     
  43. Gintoki

    Gintoki Notebook Prophet

    Reputations:
    2,886
    Messages:
    6,566
    Likes Received:
    0
    Trophy Points:
    205
    There's a GUI for vim if you want, gvim.
     
  44. srunni

    srunni Notebook Deity

    Reputations:
    96
    Messages:
    854
    Likes Received:
    0
    Trophy Points:
    30
    Looks good!
     
  45. srunni

    srunni Notebook Deity

    Reputations:
    96
    Messages:
    854
    Likes Received:
    0
    Trophy Points:
    30
    Vim and Emacs both definitely have full support for syntax highlighting for all of those languages. You can also compile the code if you want to, as you can access a terminal through either Vim or Emacs. However, for Java you should probably use http://www.satokar.com/viplugin/ with Eclipse, as it helps to deal with Java's wordiness while also letting you use the vi editing paradigm.