Chapter 7: Open Files and Save Them to Disk

Chapter Overview

Part II: Files | Tips 41-46

File operations: opening, saving, and the working directory.

Tips in This Chapter

Tip Title Mastered

41

Open a File by Its Filepath Using ':edit'

[ ]

42

Open a File by Its Filename Using ':find'

[ ]

43

Explore the File System with netrw

[ ]

44

Save Files to Nonexistent Directories

[ ]

45

Save a File as the Super User

[ ]

File Commands

Command Effect

:e {file}

Edit file

:find {file}

Find and edit

:w

Write

:saveas {file}

Save as new name

:cd {dir}

Change directory

:pwd

Print working directory

Commands Learned

Command Description Notes

Practice

Commands I tried while reading:

" (Add commands you practiced)

Questions

Things I want to explore further.

Chapter Complete

  • Read entire chapter

  • Tried all tips

  • Noted key learnings

Date completed: _