Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
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.
|
|
08-12-2007, 01:57 PM
|
#1
|
Member
Registered: Jun 2006
Location: Macclesfield Canal, East Cheshire
Distribution: Salix-14.1
Posts: 129
Rep:
|
plain old text editor
Something that has had me wondering for a while: Is it really necessary to use a text editor like vi or emacs when editing a file. Say for instance /etc/samba.conf or any other config file.
Is it just the same to use kedit or xedit or another plain old text file.
Vi and emacs and the like just seem so complicated.
Is there a golden rule here?
Phil
|
|
|
08-12-2007, 02:04 PM
|
#2
|
Senior Member
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847
Rep:
|
Makes no difference what editor you use; use what you feel comfortable with.
|
|
|
08-12-2007, 02:04 PM
|
#3
|
Senior Member
Registered: Mar 2002
Location: Oklahoma
Posts: 1,154
Rep:
|
my favorite GUI text is NEdit, looks like notepad but much more powerfull, includes syntax highlighting for many languages,the spellchecker works with ispell...
|
|
|
08-12-2007, 02:10 PM
|
#4
|
Member
Registered: Jun 2006
Location: Macclesfield Canal, East Cheshire
Distribution: Salix-14.1
Posts: 129
Original Poster
Rep:
|
So then why would someone go to all the trouble of using something as complicated as vi and emacs? There must be something special about them.
|
|
|
08-12-2007, 02:17 PM
|
#5
|
Senior Member
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038
Rep:
|
There are. Both vi and emacs are designed for heavy duty file editing of programing style files. They include lots of useful functions to assist in all sorts of editing activity, as well as act like crappy IDE. In the case of emacs, things go even further, its sometimes called its own OS (a testament to just how over designed it is for merely editing text files).
In most cases tho, a modern GUI text editor with the basic advanced features (syntax highlights, and various editing functionalities) is good enough. Both vi and emacs have evolved over the years to add lots of features most people will never use, actually, emacs kinda started out that way.
|
|
|
08-12-2007, 02:22 PM
|
#6
|
Member
Registered: Sep 2003
Distribution: Slackware
Posts: 626
Rep:
|
Also, if you're stuck without a GUI, kedit won't be much help to you. It's very useful to know your way around at least one console based editor and vi is standard with most distros
|
|
|
08-12-2007, 02:51 PM
|
#7
|
Senior Member
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109
Rep:
|
I would take a few hours to learn the basic vi commands - it's extremely fast to use for editing things like config files. The couple of hours spent learning it will be paid back in a very short time of using it.
That said, I still use EMacs for coding. EMacs for the win.
Dave
|
|
|
08-12-2007, 06:04 PM
|
#8
|
Senior Member
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038
Rep:
|
Hours? No way, Gentoo has good vi options already all set, so not much need to change them for me. All you need to know: press "insert" to enter the insert mode (or "i" from command mode), press "insert" from insert mode, and you enter replace mode, "insert" to return to insert mode. Press "espace" to exit a mode, such as to return to command mode. The command ":w" saves a file, ":q" exits, ":wq" saves and exits. Undo is "u" from command mode.
Actually, those about all the vi command i know (sad, but true), but i still use it as my primary editor (the graphical version of it, yay for menus).
|
|
|
08-12-2007, 08:28 PM
|
#9
|
Senior Member
Registered: Mar 2002
Location: Oklahoma
Posts: 1,154
Rep:
|
my favorite text editor for CLI mode is midnight commander's mcedit...
|
|
|
08-12-2007, 08:46 PM
|
#10
|
Senior Member
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109
Rep:
|
SciYro, man you're missing out. The vi rabbit hole goes deep.
Long live the editor wars!
|
|
|
All times are GMT -5. The time now is 03:41 AM.
|
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
|
|