Will513r / command-line-VWC

1 stars 0 forks source link

Edit a text file using nano, vi, or emacs #18

Open Will513r opened 11 months ago

Will513r commented 11 months ago

Summary

Get hands-on experience editing text files using command-line text editors: nano, vi, and emacs. Each editor has its features and shortcuts, and knowing how to use them can significantly enhance your productivity in the terminal.


Description


Learning Tasks

  1. Introduction to nano:

    • Familiarize yourself with nano, a beginner-friendly, straightforward text editor.
  2. Introduction to vi:

    • Dive into vi, a powerful text editor with a steep learning curve.
  3. Introduction to emacs:

    • Get to know emacs, a text editor that is highly extensible and feature-rich.
  4. Hands-on Practice:

    • Exercise 1: Open a text file using nano and practice basic editing tasks like adding text, deleting, and saving changes.
    • Exercise 2: Open the same text file using vi and learn to navigate in normal insert modes and save changes.
    • Exercise 3: Open the text file with emacs and explore its editing and navigation features.
    • Exercise 4: Compare the three editors regarding ease of use, features, and speed.
  5. Troubleshooting:

    • Discuss common issues and solutions when using these text editors, such as modes in vi or keybindings in emacs.

Learning Goals


Priority

Will513r commented 10 months ago

Used nano to add a note to my txt file.

vi is a text editor that has different modes for for navigation, editing, and running commands. I navigated thru a text file with this command. I did not do much else as it became difficult to understand what was going on.

emacs did not work in my terminal but my understanding is it is similar to how the other commands work in this section with two modes normal and insert.

tupleHunden commented 10 months ago

👍🏻