LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-18-2004, 01:40 PM   #1
xutopia
LQ Newbie
 
Registered: Aug 2003
Location: Montreal
Posts: 9

Rep: Reputation: 0
Question What is your favorite text editor?


I'm using Quanta right now as well as gphpedit but I wished there was some text editor with Column-Mode like UltraEdit does (Windows unfortunatly).

Which text editor to you use? What are its pros and cons?
 
Old 03-18-2004, 02:25 PM   #2
mikshaw
LQ Addict
 
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320

Rep: Reputation: 45
heh...that's exactly what I miss from UltraEdit.

I usually use vim...occasionally Bluefish if I get a craving to push buttons.
Pro: ability to jump around quickly, modify chunks of text, and edit any file regardless if it's local or remote, GUI or terminal.
Con: I have so much yet to learn.
 
Old 03-18-2004, 03:01 PM   #3
Nukem
Member
 
Registered: May 2003
Location: Canada, TO.
Distribution: Slackware: in progress, Mandrake 9.2, Libranet, Vector
Posts: 373

Rep: Reputation: 30
When in gui, I use kedit. Without it is vi.
 
Old 03-18-2004, 03:49 PM   #4
bitpicker
Member
 
Registered: Jul 2003
Location: Germany
Distribution: Xubuntu, Ubuntu
Posts: 416
Blog Entries: 14

Rep: Reputation: 35
For editing config files I use the edit function in mc.

Robin
 
Old 03-18-2004, 03:56 PM   #5
JROCK1980
Member
 
Registered: Aug 2003
Distribution: FreeBSD
Posts: 490

Rep: Reputation: 30
pico for me
 
Old 03-18-2004, 04:04 PM   #6
andrewlkho
Member
 
Registered: Jul 2003
Location: London
Posts: 548

Rep: Reputation: 31
kate and nano - depending on whether I'm in gui or not. Kate's excellent for script writing...IMHO
 
Old 03-18-2004, 04:13 PM   #7
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Re: What is your favorite text editor?

Quote:
Originally posted by xutopia
I wished there was some text editor with Column-Mode like UltraEdit does (Windows unfortunatly).
Not knowing UltraEdit I don't know what Column-Edit means...

What is it? :}

In Emacs I can do rectangular selections and
manipulate those ...


Cheers,
Tink
 
Old 03-18-2004, 04:24 PM   #8
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
Vim is the only editor for me. Whether I'm local or remote, in X or in Console.

Best...editor....ever...!
 
Old 03-18-2004, 05:33 PM   #9
Kovacs
Member
 
Registered: Jul 2003
Distribution: FreeBSD 8.2 RELEASE
Posts: 607

Rep: Reputation: 32
Vim or Kate depending on mood and what I'm doing.
 
Old 03-18-2004, 08:48 PM   #10
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
cat>foo, ed, sed, what's supposed to be a port of a 'real' 1985 BSD version of vi, vim, joe, mcedit, nedit, depending on mood and what I'm doing.

No wonder I suck at all of them.

Except 'cat>foo'. I think I've pretty much got that one down.
 
Old 03-18-2004, 10:17 PM   #11
mikshaw
LQ Addict
 
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320

Rep: Reputation: 45
Quote:
Not knowing UltraEdit I don't know what Column-Edit means...

What is it? :}

In Emacs I can do rectangular selections and
manipulate those ...
it may be the same thing. In UltraEdit you can drag the cursor vertically and edit multiple lines simultaneously. Say you have 50 lines that say "foo=bar" and you want to change lines 10-40 to "foo=barber". You can drag the cursor down through 31 lines, type "ber" and leave the rest of the "foo=bar" lines alone. I don't know of any other way to accomplish that without editing each line individually
 
Old 03-19-2004, 12:16 AM   #12
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
No, I don't think that's possible in emacs (not
in the standard packages, anyway)... but then
I can't recall having had a problem that would
require such a feature, either :}


Cheers,
Tink

Last edited by Tinkster; 09-08-2005 at 02:29 AM.
 
Old 03-19-2004, 01:31 AM   #13
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
sed 10,40s/bar/barber/ file



or 'sed 10,40s/$/ber/ file' if there's nothing after it.

-- Actually, same thing in 'vi' but with a colon and I'm sure ed can do it, too. I just always think 'sed' for s&r.

Last edited by slakmagik; 03-19-2004 at 01:35 AM.
 
Old 03-19-2004, 10:16 AM   #14
mikshaw
LQ Addict
 
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320

Rep: Reputation: 45
Unfortunately you'd need to save, close, and reopen after seding it. If you're working on a file where you're testing the results and need to fine tune your changes multiple times, this is a waste of time....unless sed can be performed on the current buffer?

As for where it would be useful, you're correct that it's unusual...but not unnecessary sometimes. At one time I was working on some animations which were triggered by the contents of an XML file. Quite often redundant information needed changes, and these changes needed to be tested and often changed again as a result of the test.
I've also used it for modifying playlists, but that was in windows....there are better tools available in Linux.
 
Old 03-19-2004, 11:38 AM   #15
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Ironically, 'alt-x', 'sed 10,40s/$/ber/ file' *does* work in NEdit but I was trying various ':r!' type-things with vim and couldn't figure it out. But if NEdit and sed can do it, vim and sed must be able to. (NEdit can also select columns with a 'ctrl-mousedrag' but doesn't perform very complex operations with the columns by itself.) I mean, it's unnecessary, because vim can 'sed' internally, but I was curious.

But you're right that a straight sed in an interactive editing session would be, uh, awkward.
 
  


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
Whats your favorite terminal text editor??? Necronomicom Linux - Software 8 12-16-2011 06:45 AM
Which light text editor can copy text from file and paste in browser? davidas Linux - Software 9 03-06-2006 11:28 AM
text editor Mig21 Linux - Software 17 07-07-2005 05:27 PM
Your favorite text based software ... marlor Slackware 29 08-05-2004 01:00 PM
Favorite editor rverlander General 22 09-16-2002 04:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:32 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
Open Source Consulting | Domain Registration