## Text Editors

 1. Editing text files is a very essential activity, especially when
    interacting with UNIX. We have two basic options.

 2. The traditional UNIX editor is ‹vi› (its modernised, extended variant is
    known as ‹vim›). This editor is hard to master, but very efficient. I
    encourage you to try learning it, especially if you see yourself as a UNIX
    person in the future. However, it takes a lot of practice and this seminar
    is not about text editors.

 3. If you want to use ‹vim›, you need to know these: use ‹i› to enter text,
    ESC to stop entering text and when you are not entering text, ‹:wq› to
    save your file and exit the editor and ‹:q!› to exit the editor and «not»
    save the file. You can open a text file like this:
    
        $ vim file.txt
    
    Unlike traditional ‹vi›, you can use keyboard arrows to move around the
    file while in insert mode (i.e. when entering text). This makes it almost
    possible to use ‹vim› even if you are a novice. It is up to you.

 4. Your other terminal-based option is ‹micro›. This is a very simple text
    editor, and it is not very efficient. It will be sufficient for this
    course though. Micro is invoked the same way as ‹vim›:
    
        $ micro file.txt

 5. If you are not at the ‘blackboard’ at the moment, feel free to use
    graphical text editors like ‹gedit›. Those are quite simple and intuitive.
    Sometimes, combining graphical and command line programs is the most
    efficient way to do things.

Try editing some files in an editor. When satisfied, you can move on to the
second exercise for the day. Like before, you can do it at the blackboard if
you wish:

    $ cat 2.txt
