Lesson 5 SUMMARY - Deepstash

Lesson 5 SUMMARY

1. :!command executes an external command.

Some useful examples are:

   (Windows)     (Unix)

    :!dir         :!ls        - shows a directory listing.

    :!del FILENAME  :!rm FILENAME  - removes file FILENAME.

2. :w FILENAME writes the current Vim file to disk with name FILENAME.

3. v motion :w FILENAME saves the Visually selected lines in file FILENAME.

4. :r FILENAME retrieves disk file FILENAME and puts it below the cursor position.

5. :r !dir reads the output of the dir command and puts it below the cursor position.

2

5 reads

CURATED FROM

IDEAS CURATED BY

anivana

Improve the process

ViM is a blessing. Learn it and you will be spoiled forever.

Read & Learn

20x Faster

without
deepstash

with
deepstash

with

deepstash

Personalized microlearning

100+ Learning Journeys

Access to 200,000+ ideas

Access to the mobile app

Unlimited idea saving

Unlimited history

Unlimited listening to ideas

Downloading & offline access

Supercharge your mind with one idea per day

Enter your email and spend 1 minute every day to learn something new.

Email

I agree to receive email updates