LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-02-2011, 02:59 PM   #1
sanjaydelhi
Member
 
Registered: Sep 2010
Location: India
Distribution: Ubuntu
Posts: 39

Rep: Reputation: 2
Good editor to edit text file.


Hi I am learning linux. I connect to my Ubuntu using PUTTY. What will be good editor to edit text files.

I am new and I am learning.
 
Old 01-02-2011, 03:00 PM   #2
penguiniator
Member
 
Registered: Feb 2004
Location: Olympia, WA
Distribution: SolydK
Posts: 442
Blog Entries: 3

Rep: Reputation: 60
Vim

:wq
 
1 members found this post helpful.
Old 01-02-2011, 03:01 PM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
vi is probably the most useful to learn, but has something of a learning curve to get going. I would still suggest you use it (or vim which is a slight enhancement) or for an easier one you may find nano or pico are already available as well.
 
1 members found this post helpful.
Old 01-02-2011, 03:03 PM   #4
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
If one isn't into the Vim's and Vi's, I second the Nano suggestion - it's small, simple to learn, and does the trick.

I also suggest trying Midnight Commander's editor if you have it, which can be used via the commander itself (type mc) or called directly as mcedit.

Good luck in your experimentation & learning!
 
1 members found this post helpful.
Old 01-02-2011, 04:27 PM   #5
sanjaydelhi
Member
 
Registered: Sep 2010
Location: India
Distribution: Ubuntu
Posts: 39

Original Poster
Rep: Reputation: 2
Thanks for reply.

I saw nano, pico and mc. They look to me easier than Vim. But having focus on learning Unix in future which one should I practice?
 
Old 01-02-2011, 04:46 PM   #6
bittenstate
LQ Newbie
 
Registered: Dec 2010
Posts: 6

Rep: Reputation: 0
Myexperience

1. You can't go wrong learning vi / vim
2. nano seems pretty easy, I've only been using it a couple of days, but ctrl-o writes, ^w searches, ^k dels line, ^u pastes line^x quits. That and ls,cat/more/tail,chomd,chown,cp,rm,grep,find and sudo bash, is all I've needed so far.

With GNOME I am able to use the Alt-E C and Alt-E P to cut and past blocks of text from one shell window to another.

There's an interesting app root, in Ubunto, which is a scripting like C++ version or perl/awk/sed, but I have no specific knowledge about what it does or how it works.
 
Old 01-02-2011, 04:56 PM   #7
krishnakant
LQ Newbie
 
Registered: May 2009
Location: Chennai
Distribution: CentOS, RHEL and fedora
Posts: 22

Rep: Reputation: 0
Smile Good editor to edit text file.

vi is the best editor and every body says that it is the king of all editor.
 
Old 01-02-2011, 09:00 PM   #8
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 12,776
Blog Entries: 17

Rep: Reputation: 3313Reputation: 3313Reputation: 3313Reputation: 3313Reputation: 3313Reputation: 3313Reputation: 3313Reputation: 3313Reputation: 3313Reputation: 3313Reputation: 3313
What editor to learn depends on what you want to do.

If you are looking to do simple text-editing over your ssh connection, say to tinker with configuration files and the like, nano is likely preferable to vi.

If you are looking to design web pages in a terminal environment, then vi is worth it. It's extremely powerful and complex and completely non-intuitive.

If you are going to do lots of complex text editing in a GUI environment, you might want to look at Bluefish or Kate.

Here's a good tutorial on vi with printable cheat sheets.
 
Old 01-02-2011, 10:11 PM   #9
an15wn
LQ Newbie
 
Registered: Dec 2010
Location: Jakarta, ID
Distribution: Fedora, Ubuntu
Posts: 18

Rep: Reputation: Disabled
Quote:
Originally Posted by frankbell View Post
If you are going to do lots of complex text editing in a GUI environment, you might want to look at Bluefish or Kate.
But he access Ubuntu from puTTY...
GUI won't work there...

Vote VIm, next is mcedit (if using mc with internal editor active, just press F3)...
 
Old 01-03-2011, 03:23 AM   #10
sanjaydelhi
Member
 
Registered: Sep 2010
Location: India
Distribution: Ubuntu
Posts: 39

Original Poster
Rep: Reputation: 2
Thanks for nice explanation. I decided to learn Vi.
 
Old 01-03-2011, 03:39 AM   #11
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,680
Blog Entries: 29

Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
Do try Emacs too:
http://www.gnu.org/software/emacs/tour/
 
1 members found this post helpful.
Old 01-03-2011, 09:36 PM   #12
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 12,776
Blog Entries: 17

Rep: Reputation: 3313Reputation: 3313Reputation: 3313Reputation: 3313Reputation: 3313Reputation: 3313Reputation: 3313Reputation: 3313Reputation: 3313Reputation: 3313Reputation: 3313
Quote:
Originally Posted by an15wn View Post
But he access Ubuntu from puTTY...
GUI won't work there...
(Grin) That's exactly why my response was a resounding "It depends."

A tack hammer for a tack, a nail gun for a house.

It depends.
 
Old 01-03-2011, 10:00 PM   #13
FredGSanford
Senior Member
 
Registered: Nov 2005
Location: USA
Distribution: Mageia Cauldron - Debian Testing - Salix OS
Posts: 1,051
Blog Entries: 5

Rep: Reputation: 165Reputation: 165
I remember my early days (early 2000s) installing Slackware and using Vi to edit some files...I could never remember how to save files using Vi when needed. I still don't use it!

Pico before Nano came out.
 
Old 01-03-2011, 11:17 PM   #14
mark_alfred
Senior Member
 
Registered: Jul 2003
Location: Toronto, Ontario, Canada
Distribution: Ubuntu Linux 16.04, Debian 9
Posts: 1,317

Rep: Reputation: 153Reputation: 153
I like simplicity myself; so I use nled (neat little editor).
 
Old 01-04-2011, 08:12 PM   #15
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,411

Rep: Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397
The handy thing about vi/vim is that vi has been part of the std install on all *nixes for yrs/decades.
The others mentioned likely won't be avail on a random system, especially non-Linux eg Solaris/HP-UX/AIX.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Java IDE or good text editor Nauntilus Programming 7 10-24-2010 01:46 PM
A good text editor...this should be simple. TheMusicGuy Linux - Software 9 10-06-2004 01:16 AM
Edit plus like text editor shivandeveloper Linux - Software 5 07-26-2004 02:28 PM
good text editor doralsoral Linux - Software 3 02-19-2004 11:43 PM
Can anyone recommend a good text editor? MadCactus Linux - General 11 08-23-2003 01:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration