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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
03-18-2004, 01:40 PM
|
#1
|
LQ Newbie
Registered: Aug 2003
Location: Montreal
Posts: 9
Rep:
|
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?
|
|
|
03-18-2004, 02:25 PM
|
#2
|
LQ Addict
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320
Rep:
|
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.
|
|
|
03-18-2004, 03:01 PM
|
#3
|
Member
Registered: May 2003
Location: Canada, TO.
Distribution: Slackware: in progress, Mandrake 9.2, Libranet, Vector
Posts: 373
Rep:
|
When in gui, I use kedit. Without it is vi.
|
|
|
03-18-2004, 03:49 PM
|
#4
|
Member
Registered: Jul 2003
Location: Germany
Distribution: Xubuntu, Ubuntu
Posts: 416
Rep:
|
For editing config files I use the edit function in mc.
Robin
|
|
|
03-18-2004, 03:56 PM
|
#5
|
Member
Registered: Aug 2003
Distribution: FreeBSD
Posts: 490
Rep:
|
pico for me
|
|
|
03-18-2004, 04:04 PM
|
#6
|
Member
Registered: Jul 2003
Location: London
Posts: 548
Rep:
|
kate and nano - depending on whether I'm in gui or not. Kate's excellent for script writing...IMHO
|
|
|
03-18-2004, 04:13 PM
|
#7
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
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
|
|
|
03-18-2004, 04:24 PM
|
#8
|
Senior Member
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938
Rep:
|
Vim is the only editor for me. Whether I'm local or remote, in X or in Console.
Best...editor....ever...!
|
|
|
03-18-2004, 05:33 PM
|
#9
|
Member
Registered: Jul 2003
Distribution: FreeBSD 8.2 RELEASE
Posts: 607
Rep:
|
Vim or Kate depending on mood and what I'm doing.
|
|
|
03-18-2004, 08:48 PM
|
#10
|
Senior Member
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113
Rep: 
|
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.
|
|
|
03-18-2004, 10:17 PM
|
#11
|
LQ Addict
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320
Rep:
|
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
|
|
|
03-19-2004, 12:16 AM
|
#12
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
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.
|
|
|
03-19-2004, 01:31 AM
|
#13
|
Senior Member
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113
Rep: 
|
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.
|
|
|
03-19-2004, 10:16 AM
|
#14
|
LQ Addict
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320
Rep:
|
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.
|
|
|
03-19-2004, 11:38 AM
|
#15
|
Senior Member
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113
Rep: 
|
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. 
|
|
|
All times are GMT -5. The time now is 06:32 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|