Linux - GeneralThis 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.
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.
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
my favorite GUI text is NEdit, looks like notepad but much more powerfull, includes syntax highlighting for many languages,the spellchecker works with ispell...
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.
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
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.
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).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.