Skip to content

Latest commit

 

History

History
42 lines (31 loc) · 1.94 KB

README.md

File metadata and controls

42 lines (31 loc) · 1.94 KB

Introduction

Vim is a powerful editor.

According to stackoverflow's developer 2022 survey, vim is the 3rd most popular editor behind Microsoft's Visual Studio.

Vim is popular because it offers many advantages:

  • All Linux machines have vi.
  • The vim executable is compact, taking only 3.4M of disk compared to Microsoft Word at a whopping 2.11GB.
  • Vim starts fast and loads files fast, even if the files are huge.
  • Visualize your full document more easily by seeing more file text on the screen with vim than possible with JupyterLab, nano, or Microsoft Word.
  • Edit your work with lightening speed once muscle-memory has been entrenched.

Learning Objectives

  • YOU WILL NOT BE A MEME: Learn how to quit out of the vim editor
  • Explain editor modes: normal, insert, and visual
  • Traverse a file using vim key-bindings in normal mode
  • Edit a file in --INSERT-- mode

Reading Material

Assignment

N keys Description
1 :q Quit vim
2 i j k l Move cursor one character at a time
3 `iTEXT:wq' Insert text in --INSERT-- mode and save
4 gg and G Move cursor to top and bottom of file:
4 ggoTOP<Esc>:wq Go to the top of a file; open a new line; insert "TOP"; write and quit
5 gg & G & :wq Compare vim movements with movements in Linux command, less
6 $ Move to the end of the line

Copyright (C) 2023-present, Drexel Medicine. All rights reserved.