Skip to content

Instantly share code, notes, and snippets.

View millnitzluan's full-sized avatar
👹
Novice Vim user ☕

Luan Millnitz millnitzluan

👹
Novice Vim user ☕
View GitHub Profile
import Test.HUnit
data NaturalNote = C | D | E | F | G | A | B deriving (Show, Eq, Enum)
data Note = Natural NaturalNote | Sharp NaturalNote | Flat NaturalNote deriving (Show, Eq)
data Interval = Half | Whole
type Jump = [Interval]
notes = cycle [Natural C,
Sharp C,
@dmsul
dmsul / vim_crash_course.md
Last active December 6, 2025 14:59
Vim Crash Course

NOTE: Specific examples given for options, flags, commands variations, etc., are not comprehensive.

NORMAL MODE

Vim has 2 main "modes", that chance the behavior of all your keys. The default mode of Vim is Normal Mode and is mostly used for moving the cursor and navigating the current file.

Some important (or longer) commands begin with ":" and you will see the text you enter next at the bottom left of the screen.

:q[uit] - quit (the current window of) Vim. ("Window" here is internal to Vim, not if you have multiple OS-level windows of Vim open at once.)
:q! - force quit (if the current buffer has been changed since the last save)
:e[dit] {filename} - read file {filename} into a new buffer.