Tool.Yun
Uirlisí úsáideacha do fhorbróirí
Áireamhán Amúchta
Bileog Cheat Bash
Bileog Cheat Comhréire JSONPath
Bileog Cheat Comhréire XPath
Bileog Cheat Docker
Bileog Cheat Jq
Bileog Cheat K8s
Bileog Cheat Markdown
Bileog Cheat Nano
Bileog Cheat Ordú Scáileáin
Bileog Cheat Ordú Tmux
Bileog Cheat Ordú Zellij
Bileog Cheat Ordú chmod
Bileog Cheat Powershell
Bileog Cheat Regex Choitianta
Bileog Cheat Roghnóirí CSS
Bileog Cheat Tiomnais Seimeantach Git
Bileog Cheat VIM
Bileog caimiléir Git
Bileog cheat Docker Compose
Bileog cheat Docker SWARM
Bileog cheat Dockerfile
Bileog cheat Regex
Bileog cheat Sed
NBileog Cheat ginx
Flipper Bonn
Roghnóir Cártaí
Rollóir Dísle
Roth an fhortún
Argon2 Hasher
Bcrypt
Beart Niceware go Frása Pasfhocail
Cripteagrafaíocht AOIS
Criptigh / díchriptiú téacs
Criptithe cruinneachán Ansible a dhíchriptiú
Criptiú Comhaid PGP
Criptiú PGP
Criptiú RSA
Criptiú Teaghrán Jasypt
Eochairghiniúint PGP
Gineadóir CSR
Gineadóir JWT
Gineadóir péire eochracha Ed25519
Gineadóir péirí eochracha ECDSA
Gineadóir teastais X509
Hais Comhaid
Hais téacs
Hmac gineadóir
Ionchódóir/Díchódóir Bech32
Parsálaí JWT
Parsálaí SAML
Parsálaí Teastais/Eochrach
Paseto/PASERK Poiblí/Príobháideach
Paseto/PASERK Áitiúil
RSA gineadóir eochair péire
Roinnt Rúnda Shamirs
Sínitheoir agus Fíoraitheoir RSA/DSA/ECDSA
Tiontaire Teastais SSL
Áireamhán CRC
Bailíochtóir GTIN
Díchódóir Cód QR
Gineadóir Faisnéise Teagmhála QR
Gineadóir barrachóid
Gineadóir cóid QR
Gineadóir cóid QR WiFi
Léitheoir Barrachóid
tools.epc-qrcode-generator.name
Bailíochtóir Cumadóireachta Docker
Docker Compose chuig comhad .env
Docker Compose go Quadlets
Docker compose go kubernetes
Docker iniúchta le haghaidh rith Docker
Déantóir Cumadóireachta Docker Traefik
Gineadóir Lipéad Dockerfile
Gineadóir RBAC Kubernetes
Lipéid Docker Pangolin
Rith Docker go Kubernetes
Rith Docker go Quadlets
Rith docker chuig tiontaire cumadóireachta Docker
Tiontaire Formáide Docker Compose
Tiontaire rith Docker Compose go Docker
Íoslódálaí Íomhánna Docker
Aláram Ama
Aláram Cron/Laethanta na Seachtaine
Comhaireamh síos
Cróniméadar
Cumaisc iCal
Cén Lá?
Gineadóir ICAL
Parsálaí Comhad ICAL
Tiontaire Crios Ama
Tiontaire Uimhreacha Seachtaine
Tiontaire dáta-am
Áireamhán Dáta+Fad
Áireamhán ETA
Áireamhán Fad
Áireamhán Laethanta
Áireamhán TTL
Ríomhaire Aclaíochta
Tiontaire Aonaid Achar
Tiontaire Aonaid Brú
Tiontaire Aonaid Fad
Tiontaire Aonaid Fuinnimh
Tiontaire Aonaid Fórsa
Tiontaire Aonaid Mais
Tiontaire Aonaid Toirte
Tiontaire Aonaid Uillinne
Tiontaire Cumhachta
Tiontaire Fuinnimh Bia
Tiontaire Luas
Tiontaire Luasghéaraithe
Tiontaire Minicíochta
Tiontaire Ráta Sreafa Toirte
Tiontaire Réimíreanna SI
Tiontaire Soilsiúcháin
Tiontaire teochta
Aibhsitheoir Cód/Scripteanna
Amaire Pomodoro
Bréigeoir Sonraí
CSS/JS Áilleachtú & Laghdaigh
Ceo Javascript
Dí-chomhbhrúiteoir/Díphacáileoir Javascript
Eagarthóir orduithe Cli
Gineadóir Favicon
Gineadóir GitIgnore
Gineadóir Mailto
Gineadóir Paraiméadair SQL
Gineadóir Rúnda Django
Gineadóir Scripteanna Tástála Ualaigh K6
Gineadóir Tréithe Git
Gineadóir Tábla Bunachar Sonraí
Json go Protobuf
Json go SQL INSERT
Json go Typescript
Miniféir SQL
Oscail gineadóir meta graf
SQL prettify agus formáid
Scoilteoir Comhad
Stacktrace níos deise
Tiontaire Comhad HEX
Tiontaire Lua
Tiontaire Lúb
Tástálaí API
Tástálaí Chomhéadain Swagger
Tástálaí Picomatch
Tástálaí Éalaithe ANSI
Tógálaí Cruthaithe Bunachar Sonraí
Tógálaí Teaghrán Ceangail Bunachar Sonraí
Áillitheoir Javascript
Éalaitheoir Teaghrán
Anailíseoir Tuairiscí DMARC
Bileog Cheat Sreangaithe RJ45 Cat6
Brathadóir Cineál Comhaid
Brathadóir/Díchódóir Tacair Charachtair Téacs
Consól Port Sraitheach
Cuardaitheoir airíonna LDAP ActiveDirectory
Díchódóir EMV TLV
Díchódóir Idirbhirt ETH
Díchódóir Safelink Outlook
Díchódóir Url Comhroinnte SharePoint
Eastóscóir aitheantais calóga sneachta
Faisnéis eochairchóid
Gineadóir TCPDump
Ionchódóir/Díchódóir Heicsidheachúlach
Leathnaitheoir URLanna Gearra
Léitheoir comhaid Parquet
Mascóir sonraí íogaire
Parsálaí Fianán
Parsálaí MSG Outlook
Parsálaí Ríomhphoist
Parsálaí Ríomhphoist Preabtha
Parsálaí URL
Tiontaire GZip/Díbhoilscithe
Tiontaire IdRéadaí MongoDB
Tiontaire Ionchódaithe MIME
Tiontaire Meán-Endian
Tiontaire SMART Raw
Tiontaire uimhir snámhphointe
Tástálaí DNS
Tástálaí HTTPS
Tástálaí Ilphlandúcháin DNS
Tástálaí Picteil Marbh
Tógálaí Ordú Nmap
Tógálaí URL
Áireamhán Friotóra
键盘测试器
Gineadóir Cód PIN
Gineadóir Frása Pas
Gineadóir NanoIDanna
Gineadóir Pasfhocal Diceware
Gineadóir UUIDs
Gineadóir comhartha
Gineadóir cóid OTP saor in aisce,
Gineadóir pasfhrása BIP39
Gineadóir uimhreacha
Gineadóir uimhreacha randamacha
Tiontaire UUID
Cineálacha MIME
Cóid stádais HTTP
Déantóir Blúirí Cuardaigh Téacs Url
Eagarthóir HTML WYSIWYG
Eolas gléas
Gabhálaí Url
Gineadóir Grádáin CSS
Gineadóir URL UTM
Gineadóir áitsealbhóirí SVG
Glantóir Html
Glantóir URL
HTML go XHTML
HTML go sonraí
Ionchódaigh/díchódaigh teaghráin formáidithe URL
Laghdaitheoir HTML
Parsálaí úsáideora-ghníomhaire
Roth Dathanna
Seiceálaí Codarsnachta Datha
Slabhra sluga a chruthú
Tiontaire Aonad CSS
Tiontaire CSS XPath
Tiontaire datha
Tiontaire picteilín REM
Áillitheoir CSS
Áillitheoir Html
Éalú aonáin HTML
Íomhá go CSS
Anailíseoir Méid Json
CSV go JSON
Cumaisc JSON
Cód Json go PHP
Difríocht JSON
Eagarthóir JSON
Iarratas Json
JSON Leacaitheoir/Díleacaitheoir
JSON Linter
JSON ceartaigh agus formáid
JSON chuig an Eintiteas Java
JSON go .env
JSON go C#
JSON go CSV
JSON go Go
JSON go MessagePack
JSON go Sonraí
JSON go TOML
JSON go TS
JSON go XML
JSON go réad
Json go PHP-Array
Json go Python
Json go SQL DDL
Json go Scéim
Laghdaigh JSON
Máistir sórtála JSON
ObjGen go JSON
PHP-Eagar go JSON
Pacáiste Teachtaireachta chuig JSON
Tiontaire JS go JSON
Tiontaire JSON go JS
Tiontaire JSON go YAML
Tiontaire teaghrán Json
Tástálaí Jq/JSONPath
tools.json-patch.name
Éalú Json/Unescape
Anailíseoir neart pasfhocal
Bileog Cheat ZPool
Cuardach seoladh MAC
Díchódóir ARPA
Díchódóir X-VR-SpamCause
Fiosrúcháin DNS
Forbróir raon IPv4
Formáideoir Nginx
Formáideoir Orduithe Shell
Geoshuíomh IP
Gineadóir Crontab
Gineadóir Cumraíochta Wireguard
Gineadóir DMARC DNS
Gineadóir DNS BIMI
Gineadóir DNS DKIM
Gineadóir DNS PTR
Gineadóir DNS SPF
Gineadóir FStab
Gineadóir HTAccess
Gineadóir Htpasswd/htaccess
Gineadóir Iptables
Gineadóir LogRotate Apache
Gineadóir Option43
Gineadóir Orduithe Múchta
Gineadóir Ordú Curl
Gineadóir Ordú UFW
Gineadóir Rsync
Gineadóir WPA PSK
Gineadóir port randamach
Gineadóir seoladh MAC
Gineadóir údaraithe bunúsach
IPv4-6/IPRange/CIDR in IPRange/CIDR/IPMask
IPv6 gineadóir ULA
Iarratais DNS/RDAP Cloudflare
Liosta Fo-líonra IPv4
Línearaitheoir Orduithe Shell
Mo Sheoladh IP
Neart Pasfhocal Zxcvbn
Ping
Seiceálaí DNSBL
Seiceálaí Whois
Sláintitheoir HAR
Slánuimhreacha chuig IPv4/IPv6
Tiontaire Punycode
Tiontaire Seoladh MAC
Tiontaire seoladh IPv4
Tiontaire seoladh Ipv6
Tástálaí Calafoirt TCP/UDP
Tástálaí Micreafóin
Tástálaí soicéad gréasáin
Uimhreacha Poirt
gineadóir líne ordaithe firewalld
tools.restic-command-generator.name
tools.url-redirection-checker.name
Áireamhán Chmod
Áireamhán Eisiaimh Fo-líonraí IP
Áireamhán Fo-líonra Amhairc
Áireamhán HDD
Áireamhán Iontaofachta RAID
Áireamhán RAID
Áireamhán RAID ZPOOL
Áireamhán Raoin IP ó CIDR Ipv4/6
Áireamhán Raon IPv4/6 go CIDR(anna)
Áireamhán Ráta Aistrithe Sonraí
Áireamhán fo-líonra Ipv6
Áireamhán subnet IPv4
Íoslódálaí il-naisc
Údarú SIP
Difríocht Marcáil anuas
Eagarthóir Markdown
Epub go Markdown
Gineadóir Tábla Marcála
Gineadóir toc Markdown
Greamaigh mar Markdown
HTML le marcáil síos
Lorem Ipsum Markdown
Marcáil síos ar shonraí
Marcáil síos go DOCX
Marcáil síos go HTML
Marcáil síos go Téacs
Réamhamharc marcála síos
tools.markdown-format-converter.name
Áilleoir Tábla Marcála
Amharcléiritheoir Cuar Triantánach/Cothromóideach
Measúnaí mata
OCR Matamaitice
Tiontaire Formáidí Matamaitice
Áireamhán Dénártha
Áireamhán leideanna
Comhbhrúiteoir PDF
Comhcheanglóir Pdf
Eastóscóir Téacs PDF
HTML go PDF
Pdf Criptithe
Pdf Eastóscóir Leathanach
Pdf Línearú/FastWeb
Pdf a dhíchriptiú agus a dhíghlasáil
Seiceáil sínithe PDF
Tógálaí Léirithe Cron
Bailíochtóir Luhn
Bailíochtóir agus Parsálaí ISBN
Bailíochtóir agus parsálaí IBAN
Bailíochtú Uimhreacha CBL
Comhoiriúnacht ceadúnas bogearraí
Cuardach Unicode
Cuardaitheoir Cód Tíre ISO 3166
Cuardaitheoir ISO 639
Foclóir Ar Líne
Mínigh an tOrdú Shell
Parsálaí agus formáidí fón
Seiceálaí Cárta Creidmheasa
Tiontaire Airgeadra
Tiontaire Cás Uachtarach RMB
Tiontaire Féilire
Treoirlínte Soilsithe IES
Áireamhán BMI
Áireamhán Luas Rith
Áireamhán SLA
TOML Linter
TOML go JSON
TOML go YAML
Csv go Sonraí
Excel go sonraí
Gineadóir ULID
Ionchódóir/díchódóir eagar heicsidheachúlach Base64
Ionchódóir/díchódóir teaghrán Base64
Normalaitheoir ríomhphoist
Ríomhaire Ídiú Fuinnimh agus Costais
Tiontaire Aonad Go Leor
Tiontaire Aonaid Stórála Sonraí
Tiontaire Carachtair Unicode go Eintitis Java
Tiontaire Comhordanáidí Geografacha
Tiontaire Formáid Athróg Comhdhlútha
Tiontaire airíonna
Tiontaire bonn slánuimhir
Tiontaire comhad base64 íoslódáil
Tiontaire dBm mW
Tiontaire uimhreacha Rómhánacha
Torrent go Maighnéad
Téacs go Unicode
Téacs go dénártha UTF-8
Tógálaí tagarmhairc
Áireamhán Cóimheas Gnéithe
Áireamhán achair gheografaigh
Áireamhán céatadánach
Aimsitheoir Línte Dúblacha
Aistritheoir Téacs
Athsholáthar Téacs Cliste agus Briseadh Líne
Bain téacs as HTML
Comhroinnteoir Nasc Sóisialta
Comparadóir Liostaí
Difríocht téacs
Déan Comparáid Clónna
Focail Ar Leith
Formáideoir Unicode
Gineadóir Ordú Sed
Gineadóir Sleachta
Gineadóir Téacs Ealaíne ASCII
Gineadóir an-mhaith
Gineadóir/Meirge Zalgo
Ionchódóir/Díchódóir Comhartha GPT
JSON go TOON
Liosta tiontaire
Léaráid Struchtúr Fillteán
Léitheoir RSVP
Meastóir Comharthaí GPT
Onnmhaireoir maighdeana mara
Pacáil comhaid le haghaidh AI
Roghnóir Emoji
Roghnóir Líní Rándamach
Scoilteoir Pras AI
Scrambalóir slabhra
Seiceálaí I agus L
Staitisticí téacs
TOON go JSON
Tabáil go Spásanna
Tiontaire Cód Morse
Tiontaire Leagan Amach Méarchláir
Tiontaire Rún
Tiontaire cás
Tástálaí Regex
Téacs chuig Ainmneacha Unicode
Téacs go aibítir NATO
Unicode go GSM-7
Áireamhán Levenshtein
Íomhá go hEalaín ASCII
Formáidiú XML
Linter XML
ObjGen go HTML
Tástálaí XPath
Tástálaí XSLT
XML go JSON
Cumasc YAML
Tiontaire YAML go JSON
YAML Leacaitheoir/Díleacaitheoir
YAML go TOML
YAML prettify agus formáid
Athraitheoir íomhá
Bain Cúlra na hÍomhá
Bain EXIF
Comparáid Íomhá
GIF go MP4
Inbhéartóir Dath Íomhá
Léitheoir cáilíochta EXIF/Meiteashonraí/GPS/JPEG íomhá
OCRúigh íomhá agus PDF
Réamhamharcóir SVG
Ríomhairigh íomhá
Taifeadta ceamara
Tiontaire Formáidí Íomhá
Tiontaire HEIC
Tiontaire ICO/PNG
Uiscemharc
Íomhá go SVG (potrace)

Bileog Cheat VIM

Orduithe eagarthóir téacs Vim

Vim is a modal editor: keys mean different things depending on the mode you are in. Most commands compose as count + operator + motion — 3dw deletes three words, d$ deletes to the end of the line — so learning a new motion instantly upgrades every operator you already know.

💡 New to Vim? Run vimtutor in a terminal — 30 minutes, and the rest of this sheet starts making sense.

🚦 Modes

ModeEnter withLeave withFor
NormalEsc (or Ctrl-[)—Moving and running commands
Inserti a o I A OEscTyping text
Visualv V Ctrl-vEscSelecting text
Command-line: / ?Enter or EscEx commands and searches
ReplaceREscOvertyping

🧭 Cursor Movement

KeyMoves to
h j k lLeft, down, up, right
w / WStart of the next word / WORD (WORD ignores punctuation)
e / EEnd of the next word / WORD
b / BStart of the previous word / WORD
ge / gEEnd of the previous word / WORD
0First column of the line
^First non-blank character
$End of the line
g_Last non-blank character
f<char> / F<char>Next / previous occurrence of a character on the line
t<char> / T<char>Just before the next / after the previous occurrence
; / ,Repeat the last f/t forwards / backwards
} / {Next / previous paragraph
) / (Next / previous sentence
gg / GFirst / last line of the file
<n>G or :<n>Line n
H M LTop, middle, bottom of the screen
Ctrl-d / Ctrl-uHalf a page down / up
Ctrl-f / Ctrl-bA full page down / up
zz zt zbScroll so the cursor line is centred / at the top / at the bottom
%The matching bracket, brace or parenthesis
Ctrl-o / Ctrl-iBack / forward through the jump list
g; / g,Back / forward through the change list
'' / ``Back to where the last jump started

✏️ Entering Insert Mode

KeyStarts typing
i / IBefore the cursor / at the first non-blank character
a / AAfter the cursor / at the end of the line
o / OOn a new line below / above
s / SDeleting the character / the whole line first
ccReplacing the whole line
CReplacing from the cursor to the end of the line
giWhere you last left insert mode
Ctrl-oRun one normal-mode command, then return to insert

🔧 Operators & Text Objects

An operator waits for a motion or a text object. Doubling the operator (dd, yy, >>) applies it to the whole line.

OperatorDoes
dDelete (into a register)
cChange — delete, then insert
yYank (copy)
> / <Indent / unindent
=Re-indent
gu / gU / g~Lower-case / upper-case / toggle case
gqReformat to textwidth
Text objectSelects
iw / awInner word / a word plus its trailing space
is / asSentence
ip / apParagraph
i" a"Inside / including the double quotes
i' a'Inside / including the single quotes
i( a(Inside / including the parentheses (also ib, ab)
i{ a{Inside / including the braces (also iB, aB)
i[ a[Inside / including the brackets
i< a<Inside / including the angle brackets
it / atInside / including an HTML or XML tag
ciw     change the word under the cursor
ci"     change everything inside the quotes
da(     delete the parentheses and their contents
yi{     yank the body of a block
2dd     delete two lines
d3w     delete three words
>ap     indent the whole paragraph

✂️ Editing

KeyDoes
x / XDelete the character under / before the cursor
r<char>Replace one character, staying in normal mode
ROvertype until Esc
~Toggle the case of one character
J / gJJoin the next line, with / without a space
u / Ctrl-rUndo / redo
UUndo every change on the current line
.Repeat the last change — the most valuable key in Vim
Ctrl-a / Ctrl-xIncrement / decrement the number under the cursor
>> / <<Indent / unindent the line
==Re-indent the line
:earlier 10m / :later 5mMove through the undo tree by time

📋 Copy, Paste & Registers

KeyDoes
yy (or Y)Yank the line
y<motion>Yank what the motion covers
p / PPaste after / before the cursor
]pPaste and match the current indentation
dd / DDelete the line / to the end of the line
"ayy / "apYank into and paste from register a
"+y / "+pYank to and paste from the system clipboard
"0pPaste the last yank (never overwritten by deletes)
:registersShow every register
xp / ddpSwap two characters / two lines

⚠️ In Vim, deleting also yanks — dd overwrites the unnamed register. Use "0p to paste what you last copied, or yank into a named register first.

🔍 Search & Replace

CommandDoes
/pattern / ?patternSearch forwards / backwards
n / NNext / previous match
* / #Search for the word under the cursor, forwards / backwards
:nohClear the search highlighting
:s/old/new/Replace the first match on the line
:s/old/new/gReplace every match on the line
:%s/old/new/gReplace throughout the file
:%s/old/new/gc…asking for confirmation on each
:%s/old/new/gi…ignoring case
:'<,'>s/old/new/gOnly inside the visual selection
:%s/\<word\>/new/gWhole words only
&Repeat the last substitution on this line

The global command

:g runs an Ex command on every line matching a pattern — the power tool of Vim.

:g/TODO/d           delete every line containing TODO
:v/keep/d           delete every line NOT containing 'keep' (:v is :g!)
:g/^$/d             delete all blank lines
:g/error/normal A;  append a semicolon to every matching line
:g/pattern/t$       copy matching lines to the end of the file
:g/pattern/m0       move matching lines to the top (reverses their order)

🎨 Visual Mode

KeyDoes
vCharacter-wise selection
VLine-wise selection
Ctrl-vBlock (column) selection
gvReselect the previous selection
oJump to the other end of the selection
d / y / cDelete, yank or change the selection
> / <Indent / unindent the selection
u / U / ~Lower-case, upper-case, toggle
:'<,'>Run an Ex command over the selection
Ctrl-v, select lines, I, type, Esc     insert the same text on every line
Ctrl-v, select lines, $, A, type, Esc  append at the end of every line
Ctrl-v, select, d                      delete a rectangular block

🔖 Marks & Jumps

KeyDoes
m<a-z>Set a mark in this file
m<A-Z>Set a global mark, across files
`aJump to mark a, exact position
'aJump to the start of the line holding mark a
`.Jump to the position of the last edit
:marksList every mark
:delmarks aDelete a mark

🎬 Macros

KeyDoes
q<a-z>Start recording into a register
qStop recording
@aPlay the macro back
@@Replay the last macro
10@aRun it ten times
:%normal @aRun it on every line of the file

📂 Files, Buffers, Windows & Tabs

CommandDoes
:e <file>Open a file
:e!Reload, discarding changes
:w / :w <file>Save / save as
:waSave every changed buffer
:q / :q!Quit / quit without saving
:wq or :x or ZZSave and quit
ZQQuit without saving
:ls / :buffersList the open buffers
:b <n> / :b <name>Switch to a buffer
:bn / :bp / :bdNext / previous / delete buffer
:sp / :vspSplit horizontally / vertically
Ctrl-w h j k lMove to the window in that direction
Ctrl-w wCycle through the windows
Ctrl-w q / Ctrl-w oClose this window / close all the others
Ctrl-w =Make all windows the same size
Ctrl-w + / - / < / >Resize the window
:tabnew <file>Open a new tab
gt / gTNext / previous tab
:tabc / :taboClose this tab / close all the others
:r <file> / :r !cmdRead a file, or a command’s output, into the buffer
:!<cmd>Run a shell command
:%!<cmd>Filter the whole buffer through a command
:w !sudo tee %Save a file you opened without permission

📑 Folding

KeyDoes
zf<motion>Create a fold
za / zAToggle this fold / recursively
zo / zcOpen / close this fold
zR / zMOpen / close every fold
zj / zkMove to the next / previous fold

🧩 Completion & Spelling

KeyDoes
Ctrl-n / Ctrl-pComplete a word from the open buffers
Ctrl-x Ctrl-fComplete a file path
Ctrl-x Ctrl-lComplete a whole line
Ctrl-x Ctrl-oOmni-completion (language-aware)
:set spell spelllang=en_usTurn spell checking on
]s / [sNext / previous misspelling
z=Suggestions for the word under the cursor
zg / zwAdd to the dictionary / mark as wrong

🧵 Quickfix & Diff

CommandDoes
:make / :grep <pat>Fill the quickfix list
:copen / :ccloseOpen / close the quickfix window
:cn / :cpJump to the next / previous entry
:cfirst / :clastFirst / last entry
vimdiff a bOpen two files in diff mode
]c / [cNext / previous difference
do / dpObtain / put the change under the cursor
:diffupdateRefresh the diff

⚙️ Handy :set Options

OptionEffect
:set nu / :set nonuShow / hide line numbers
:set rnuRelative line numbers — makes 5j obvious
:set ic / :set noicIgnore case when searching
:set is / :set hlsIncremental search / highlight matches
:set wrap / :set nowrapSoft-wrap long lines
:set listShow tabs and trailing whitespace
:set pasteStop auto-indent mangling pasted text
:set ft=<type>Force a file type
:set sw=4 ts=4 etFour-space indentation, spaces not tabs
:syntax onSyntax highlighting

📄 A Starting ~/.vimrc

set nocompatible
syntax on
filetype plugin indent on

set number relativenumber
set incsearch hlsearch ignorecase smartcase
set expandtab shiftwidth=2 tabstop=2
set scrolloff=5
set hidden
set undofile
set clipboard=unnamedplus

" a leader key, and a few mappings that pay for themselves
let mapleader = " "
nnoremap <leader>w :w<CR>
nnoremap <leader>/ :nohlsearch<CR>
nnoremap <C-h> <C-w>h
nnoremap <C-j> <C-w>j
nnoremap <C-k> <C-w>k
nnoremap <C-l> <C-w>l

ℹ️ Mappings that start with <leader> are your configuration, not built-in Vim. If a leader shortcut on someone else’s cheat sheet does nothing, that is why.

📚 Resources

  • vimtutor — the built-in 30-minute tutorial
  • :help <topic> — Vim’s own documentation, and it is excellent
  • Vim documentation
  • Vim Adventures — learn by playing
  • Practical Vim (book)