LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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


Reply
  Search this Thread
Old 08-12-2007, 01:57 PM   #1
autophil
Member
 
Registered: Jun 2006
Location: Macclesfield Canal, East Cheshire
Distribution: Salix-14.1
Posts: 129
Blog Entries: 1

Rep: Reputation: 15
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
 
Old 08-12-2007, 02:04 PM   #2
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Rep: Reputation: 128Reputation: 128
Makes no difference what editor you use; use what you feel comfortable with.
 
Old 08-12-2007, 02:04 PM   #3
Okie
Senior Member
 
Registered: Mar 2002
Location: Oklahoma
Posts: 1,154

Rep: Reputation: 187Reputation: 187
my favorite GUI text is NEdit, looks like notepad but much more powerfull, includes syntax highlighting for many languages,the spellchecker works with ispell...
 
Old 08-12-2007, 02:10 PM   #4
autophil
Member
 
Registered: Jun 2006
Location: Macclesfield Canal, East Cheshire
Distribution: Salix-14.1
Posts: 129

Original Poster
Blog Entries: 1

Rep: Reputation: 15
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.
 
Old 08-12-2007, 02:17 PM   #5
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
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.
 
Old 08-12-2007, 02:22 PM   #6
mdg
Member
 
Registered: Sep 2003
Distribution: Slackware
Posts: 626

Rep: Reputation: 38
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
 
Old 08-12-2007, 02:51 PM   #7
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 97
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
 
Old 08-12-2007, 06:04 PM   #8
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
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).
 
Old 08-12-2007, 08:28 PM   #9
Okie
Senior Member
 
Registered: Mar 2002
Location: Oklahoma
Posts: 1,154

Rep: Reputation: 187Reputation: 187
my favorite text editor for CLI mode is midnight commander's mcedit...
 
Old 08-12-2007, 08:46 PM   #10
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 97
SciYro, man you're missing out. The vi rabbit hole goes deep.

Long live the editor wars!
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
No plain ascii editor? sunlion Mandriva 4 01-03-2006 01:35 AM
Storage: XML vs plain text? Wynd Programming 8 12-15-2005 11:33 PM
CMS for plain text rblampain Linux - Software 3 12-14-2005 10:40 PM
not a plain text file wazza4610 Linux - Newbie 1 11-22-2005 04:20 AM
Plain Text Printing Messed Up milkycow Linux - Newbie 0 10-11-2004 02:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:24 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