VIM

MOC Technology

Created: 2022-06-19
Tags: #fleeting



yi' - copies everything in between ''
diw - deletes the alpha char

Different Modes in VIM

  • Where you can run commands
  • Where you can type texts

Visual Model

  • Selection of texts so that you can only run commands on that selected text

Format for modying texts

Commands that manipulate text often uses operator and motion

operator motion

operator = command itself, instructs what to do
motion = moves over text, commands that lets you move cursor

Execute any external command
:!
Like :!ls, basically any commands outside of VIM

You could also write a new file inside of vim
:w FILENAME

:r to retrieve the contents of file and paste it into current file.

Executing External Commands

! allows you to execute any external shell command
Lesson 5.0 is all about saving files, selecting text to save a file etc
Not yet done ^