Chapter 3: Conquer the Terminal Emulator

Chapter Overview

Part II: Terminal Emulator | Tips 9-18

Using Vim’s built-in terminal.

Tips in This Chapter

Tip Title Mastered

9

Run a Terminal Inside Vim

[ ]

10

Use Terminal Mode Mappings

[ ]

11

Send Commands to a Running Terminal

[ ]

12

Apply Shell-Like Commands in Terminal Mode

[ ]

13

Work with Terminal Scrollback

[ ]

14

Create a Terminal-Mode Mapping for Exiting Terminal Mode

[ ]

15

Open and Close Terminal Windows

[ ]

Terminal Commands

Command Effect

:terminal

Open terminal

<C-\><C-n>

Exit terminal mode

i or a

Enter terminal mode

:b term

Switch to terminal buffer

Commands Learned

Command Description Notes

Practice

Commands I tried while reading:

" (Add commands you practiced)

Config Ideas

-- Ideas from this chapter
-- Terminal mode mappings

vim.keymap.set('t', '<Esc><Esc>', '<C-\\><C-n>', { desc = 'Exit terminal mode' })

Questions

Things I want to explore further.

Chapter Complete

  • Read entire chapter

  • Tried all tips

  • Added terminal mappings

Date completed: _