I am currently reading a book on bash and it recommends learning either emacs or vi. I am primarily a windows user and not very experienced with linux yet. So which would be best to learn, or is there no clear choice?
|
VI[M] is standard across all systems while the installation for Emacs will vary depending on any number of settings. |
|||||||||||
|
|
Vi is a better option, because it's part of the unix standard, so any unix machine you ever use, should have it installed. This includes Linux, Solaris, BSD etc. It's worth learning the basics of it, just for that reason. There are plenty of arguments for the merits of each online - a lot of it just comes down to personal taste. |
|||
|
|
|
Choose emacs and vi(m) is a personal choice. Install cygwin on your windows machine and install both emacs and vim. Read about them and try using them. Whichever you prefer is the right choice for you. I started off using emacs and then switched to vim. It is all personal. The issue can actually become a heated debate amount the right/wrong people. |
|||
|
|
|
Text editors usually support VIM keybindings more commonly than they do emacs. Learn vi once, use it over and over again. |
|||
|
Well, you'd be better off at this point picking a Linux distro than an editor, because in all likelihood, your BASH book assumes you're using Linux. I suggest installing Ubuntu under VirtualBox, then trying both vi & emacs. If you prefer one over the other, use that. But overall, it wouldn't hurt to know enough of both to open, edit, and save a file, without destroying it or your keyboard in the process. |
|||||
|
|
Neither. Picking up emacs or vi(m) to learn a programming language or other computer skill means you have to learn how to use a text editor at the same time you're learning to program. Use Notepad. Or Notepad++. On Linux, gedit or Kate. |
||||
|
|
|
Neither of the editors are available by default in Windows, so it really does not matter. Choice of either Vi or Emacs is definitely an acquired taste and you need to acquire it if you are going to be working in Unix command line a lot. Vi is a standard tool that is available in every environment and by the virtue of this alone, it is probably better tool to learn at least basic skill set of using vi. Emacs is on the other hand a bit closer to how most of the editors work (e.g. no separate command, navigation and editing mode) and quite a few shell environments use same standard key bindings as Emacs for line editing. In any case - if you are looking for a good and powerful text editor for windows, I suggest taking look at E-text editor |
||||
|
|
|
If you are just looking to edit files from the command line, I'd recommend nano. It's nowhere near as sophisticated as emacs or vi, but sometimes that,s exactly what's needed. |
|||||||||||||||
|
|
BOTH, you can never learn to much! Then decide for yourself which one you like better. |
|||
|
|
ed,cat, andsed. Those are the basics and you'll have them anywhere. :) – Shiki Jun 25 '10 at 19:19