
The vast majority of a silicon engineer's career is spent inside text — Verilog and SystemVerilog files, often over headless SSH. This is the case for editing at the speed of thought, not the speed of the mouse.
Welcome to the setup lesson, lesson one point zero: where your Vim window actually comes from. By the end, the numbered margin, the syntax colors and the status bar will no longer be magic: just four settings you switch on yourself.
Here is challenge one point zero: switch on line numbers, syntax coloring, a color theme, and a permanent status bar, then make them stick in your vimrc. Pause now and try it yourself. Ready? Let us solve it together.
Welcome to lesson one point one: modes, the one idea that makes everything in Vim finally click. By the end you will read the cursor like a status light, and always know whether your keys are commands or text. Here is a puzzle every Vim beginner hits.
Here is challenge one point one: type a two-line module stub, deliberately fat-finger the end, then fix it with x. Pause now and try it yourself. Ready? Let us solve it together.
Welcome to lesson one point two: the doors into Insert mode. In lesson one you met a single door, the key i. Now meet the whole family: i, a, and o, each with an uppercase twin, capital I, capital A, and capital O.
Here is challenge one point two: build a small serv_top skeleton from an empty file using only the six insert doors, i a o O I A, no motions at all. Pause now and try it yourself. Ready? Let us solve it together. I open with i and type module serv_top, semicolon, then Escape.
Welcome to lesson one point three: moving through your code in Normal mode, without ever reaching for the mouse or the arrow keys.
Here is challenge one point three: warm up your motions across the port list, then fix a stray double comma on the clk line and append a trailing comment. Pause now and try it yourself. Ready? Let us solve it together.
Welcome to lesson one point four: absolute movement, jumping straight to an exact place in a large file.
plant a bookmark at the top, jump by line number to add a comment, feel the two file ends, snap back to your mark. Pause now and try. Ready? Let us solve it together.
Welcome to lesson one point five: text objects, and the grammar that turns Vim into a language.
Challenge one point five: fix three things, each with one verb-plus-noun stroke. Change the wrong string, rewire a connection, delete a stray block. Pause now and try. Ready? Let us solve it together.
Welcome to lesson one point six: delete, change and yank, the atoms of editing, and the lowercase-uppercase pairs that double their reach.
Challenge one point six: five edits with the atoms of Vim — trim with D, swap with r, lowercase with gu, rename with c w and the dot, join with J. Pause now and try. Ready? Let us solve it together.
Welcome to lesson one point seven: registers. This is the one most people skip, and the one that quietly changes how you edit forever. Here is what you will walk away with. Vim does not have one clipboard. It has dozens, each with its own name and its own memory.
Challenge one point seven: gather three signal lines into a named register, drop them as a block, delete a throwaway line safely, stamp the file name with no typing. Pause now and try. Ready? Let us solve it together.
Welcome to lesson one point eight: search and jump, the fastest way to land anywhere in a file.
Challenge one point eight: i_wreq was renamed upstream to i_wen, and every occurrence has to change — search and the dot, never scrolling by hand. Pause now and try. Ready? Let us solve it together.
Welcome to lesson one point nine: undo, redo, and the dot. This is the lesson that lets you stop being careful and start being brave.
Challenge one point nine: comment out the debug wires with the dot, then use undo and redo to change your mind freely. Pause now and try. Ready? Let us solve it together.
Welcome to lesson one point ten: Visual mode, where you flip Vim's grammar around. Instead of a verb hunting for a target, you select the target first, and then act.
Challenge one point ten, all in Visual mode: strip an x-underscore column, block-comment three assigns, delete two dead comments. Pause now and try. Ready? Let us solve it together.
Welcome to lesson one point eleven: counts and repeat, the last stop in Module one. This is the multiplier. Here is the idea you will walk away with. Almost every command in Vim will take a number in front of it, and that number just means: do this, that many times.
Challenge one point eleven, with counts and the dot: delete two doubled words, drop three dead registers, rename two wires. Pause now and try. Ready? Let us solve it together.
Welcome to lesson two point one: macros, the single biggest force multiplier in the whole editor. By the end, you will do a repetitive edit exactly once — slowly and deliberately — then watch the rest of the file fix itself.
Challenge two point one: turn a whole serv_rf port list into dot-name connections, recording the edit once and replaying it. Pause now and try. Ready? Let us solve it together.
Welcome to lesson two point two: search and replace, where a pattern stops finding text and starts rewriting it. Instead of hand-editing the same signal line after line, describe it once — Vim changes every copy, file-wide, in a single command.
Challenge two point two: rename the output bus prefix o w b everywhere, leave the inputs alone, prove it is clean. Pause now and try. Ready? Let us solve it together.
Welcome to lesson two point three: the global command, the most powerful key most people never learn. Instead of hunting line by line, describe a set of lines with a pattern and run one command on every one, in a single stroke.
Challenge two point three: comment out every line that drives an output — the assigns — in one command, then flip it with the inverse. Pause now and try. Ready? Let us solve it together.
Welcome to lesson three point one: indent — reshaping a block of code until it lines up the way it should. When a module reaches you with ragged, hand-mangled whitespace, one command — g g equals capital G — straightens the whole thing, and you will know why it worked.
Challenge three point one: a counter came out of a bad copy-paste, every line at a random column. Straighten it by hand, then let Vim compute it. Pause now and try. Ready? Let us solve it together.
Welcome to lesson three point two: folding — the way you make a thousand-line module get out of your way. Instead of scrolling through a wall of always blocks, you will roll the whole module into a short outline and open just the block you care about.
Challenge three point two: fold a real uart_tx module to an outline, open one block to read it, then prove the file never changed. Pause now and try. Ready? Let us solve it together.
Welcome to lesson three point three: diff — seeing exactly what changed, line by line.
Challenge three point three: line up two revisions of a fifo module in a diff, walk every change, accept the rename, reject the threshold bump. Pause now and try. Ready? Let us solve it together.
Welcome to lesson four point zero, the setup lesson for Module four: Scale. Before any jump or fuzzy-find, we install the tools the whole module runs on — once, so four point one through four point six just work.
Welcome to lesson four point one, and to Module four: Scale. Until now you lived inside a single file — real silicon does not fit in one.
Challenge four point one, by definition alone: dive into a module with Ctrl bracket-right, surface with Ctrl-T, build and read a two-level tag stack, pick among duplicate definitions. Pause now and try. Ready? Let us solve it together.
Welcome to lesson four point two: fuzzy find — open any file, search the whole project, by typing a few letters of a name.
Challenge four point two: navigate the whole project without typing a path — open files by a name fragment, hop between what is open, search by content, fuzzy find only. Pause now and try. Ready? Let us solve it together.
Welcome to lesson four point three: buffers, windows, tabs — and the one command that makes Module four earn its name, Scale.
Challenge four point three: the signal alu_op, the four-bit opcode, lives in two files, cpu_top and decoder. Rename it to opcode everywhere in the R T L, in one command. Pause now and try. Ready? Let us solve it together.
Welcome to lesson four point four: quickfix and project search — the list that turns a wall of tool output into places you step through.
Challenge four point four: load a four-warning lint log into quickfix, open the list, step to the third warning, land on the flagged line — never typing a line number. Pause now and try. Ready? Let us solve it together.
Welcome to lesson four point five: align — lining your code up into readable columns. Here is what you walk away with: when a block of RTL comes to you ragged — equals signs scattered, comments drifting — you snap it into clean columns with one operator, and your eye scans down.
Challenge four point five: five ragged declarations — equals signs and trailing comments scattered. Snap them into two clean columns with the align operator only, not one space by hand. Pause now and try. Ready? Let us solve it together.
Welcome to lesson four point six: vimscript. Everything so far bends Vim to your will — now you teach Vim tricks of your own. A chore I hit ten times a day: how many ports does this module have? Our decoder — one input, instr; four outputs: rs1, rs2, rd, alu_op.
Challenge four point six: a backtick-wrap function, a Backtick command, a key binding — all in your tool file — then quit, return, check it survives. Pause now and try. Ready? Let us solve it together.
Welcome to lesson four point seven: build your own statusline. That strip along the bottom of every window is prime screen real estate, doing almost nothing for you.
Challenge four point seven: build a statusline from one bare item into a colored, live bar: filename, path, modified flag, line and length, buffer number, and a live selection counter. Pause now and try. Ready? Let us solve it together.
Welcome to lesson four point eight: colour your signals. In a dense netlist, three signals can look identical — until each gets its own colour and your eye locks on, across the whole file.
Challenge four point eight: light three signals with the three slots, add a fourth with matchadd, remove only that fourth, clear the window, redo it with the plugin, counting keys. Pause now and try. Ready? Let us solve it together.
Welcome to lesson five point one: marks and jumps — how you hold your place while you chase a signal through a real codebase.
Challenge five point one: chase alu_op through the little CPU's three files — cpu_top, decoder, ALU — with nothing but marks and Ctrl-O. No file names retyped, no scrolling. Pause now and try. Ready? Let us solve it together.
Welcome to lesson five point two: sessions and views — how to save your whole workspace and walk back into it exactly as you left it
Challenge five point two: build a review layout — three files, a vertical split, a fold — save it as a session, tear it down, and bring it back with one command. Pause now and try. Ready? Let us solve it together.
Welcome to lesson five point three: the command-line window — the single best Vim feature almost nobody discovers on their own.
Challenge five point three: you ran a substitute — percent s, backslash-less-than r s one, into s r c one — but meant r s two. Recall, fix, re-run, no retyping. Pause now and try. Ready? Let us solve it together.
Welcome to lesson five point four: insert-mode completion — the end of retyping long signal names.
Challenge five point four: wire the ALU instance by completion alone — every port from Control-N, pulled from the declarations already in the buffer, no long identifier typed in full. Pause now and try. Ready? Let us solve it together.
Welcome to lesson five point five: advanced macros — the sequel to two point one, where a recorded edit becomes a whole-project instrument.
Challenge five point five: a recursive macro sweeps a module untended, making every port a dot-name connection; a plain macro rides argdo across four RTL files. Work on a copy. Pause now and try. Ready? Let us solve it together.
Welcome to lesson six point one: windows, tabs and layouts — command a screen full of windows, organize them into tabs, for a real RTL review.
Challenge six point one: build a datapath-review cockpit — cpu_top, the decoder, the testbench — give the ALU its own tab, flip with g-t. Window commands only, no mouse. Pause now and try. Ready? Let us solve it together.
Welcome to lesson six point two: regex mastery. You know the substitute command — find old, replace new, across the file. Today we go under the hood of the pattern itself, and turn substitute into a precision instrument.
Here is challenge six point two. Two very-magic substitutes: swap every port name, and widen every bus by one bit. No macros, nothing retyped. Pause now and try it yourself. Ready? Let us solve it together. Task one: swap the port names.
Welcome to lesson six point three: build and test — run your toolchain from inside Vim instead of alt-tabbing to a shell. In four point four you learned the quickfix list; today you FILL it from a live tool.
Challenge six point three: wire colon make to lint the datapath, jump to the first warning, fix it, and re-lint until the list is clean — all from inside Vim. Pause now and try. Ready? Let us solve it together.
Welcome to lesson six point four: Ex-command power — the other half of the colon.
Challenge six point four: tidy the FIFO controller with addresses alone: regroup the reset with colon m, align the port list with colon bang column dash t, sort the localparams. Pause now and try. Ready? Let us solve it together.
Welcome to lesson six point five: the clipboard, the black-hole register, and the calculator — the last lesson of Module six, the registers and numbers nobody named for you yet.
Challenge six point five, in tap_split: number a column zero through seven with g Control-A, compute its MSB with the expression register, delete a throwaway line with the black-hole register. Pause now and try. Ready? Let us solve it together.
Welcome to lesson seven point one: diff and three-way merge — resolve a real merge conflict, hunk by hunk, without leaving Vim.
Challenge seven point one: resolve a real merge conflict in serv underscore ctrl, in the three-way view — our port from LOCAL, their reset fix from REMOTE, no marker left. Pause now and try. Ready? Let us solve it together.
Welcome to lesson seven point two: the undo tree and time travel. You know u and Control-R from one point nine — here undo stops being a line and becomes a map of every version your file ever had.
Challenge seven point two: refactor one result line three ways: exclusive-or, and, or; u between each, keep the third; g minus walks time to the FIRST version, colon undolist confirms. Pause now and try. Ready? Let us solve it together.
Welcome to lesson seven point three: project-wide edits with colon cdo and colon cfdo — run one command over every match a search just found.
Challenge seven point three: rename alu underscore op to opcode across the datapath, sparing the look-alike alu underscore op underscore d-b-g. Work on a copy: this writes to disk. Pause now and try. Ready? Let us solve it together.
Welcome to seven point four: when your tool meets reality. The port counter you built in four point six has lived quietly in your tool file ever since — untouched, unquestioned, trusted.
Welcome to lesson seven point five: Fold and Outline Your RTL. You have already seen folds in Module three — indent, marker, manual. Now we build a fold that understands Verilog and turns a dense RTL file into a navigable map.
Welcome to seven point six, Vimscript at Scale: the last lesson of Module seven, and the last teaching lesson of Track A.
We are about to read an interface we have never seen before. The goal is not to memorize every line, but to answer one concrete question: when does this single signal go high?
We have followed a signal by hand: folding, tags, and a custom search. Now we add a real netlist engine and let it draw the map for us. The target is o_ibus_adr, the instruction-bus address output of the SERV core. One output, one question: where does it actually come from?
The full workflow on a real change to the SERV RISC-V core: recon a codebase you've never seen, using every navigation and search tool from the course.
Cutting the change: apply the fix across the real SERV core files, at the speed the rest of the course built up to.
Reconciling with your team: resolve real conflicts and merge the change back in, the way you'd actually do it at work.
You spend your career inside text. Verilog and SystemVerilog, testbenches, timing reports, synthesis logs, waveforms dumped to files you actually have to read. Here's the uncomfortable question: for all those hours, how much of your editing speed have you ever invested in?
Most hardware engineers never do. They learn just enough of an editor to survive, and then pay for it every single day — a few seconds here, a manual rename there, a hand leaving the keyboard for the mouse a thousand times a week.
This course is the fix, and it is built specifically for our work.
Everything is taught on real open-source silicon. Not foo and bar — the SERV RISC-V core and picorv32, the same kind of RTL you're paid to edit. You'll rename a signal across an entire project without scrolling. You'll gather scattered port declarations and drop them as a block. You'll record a fiddly edit once and replay it forty times. You'll open a compiler error and land directly on the offending line.
And it works where your work actually happens. Your real job doesn't run in a shiny IDE on your desk — it runs on a compute farm you reached over SSH, where graphical tools are far away and the connection is precious. On that machine there is always a terminal, and in that terminal there is always Vim. Learn it once, and you're fluent on every server you'll ever log into.
You'll practise, not just watch. The course ships with 21 graded labs on real RTL, plus 42 challenges and 42 quizzes. A companion Vim plugin checks your work and tells you exactly what's still wrong — so you find out you've got it, instead of hoping.
We start from a bare Vim and build up: the modes, moving without arrows, the operator-and-text-object grammar that turns editing into a language you compose instead of commands you memorise. Then macros, search and replace, the global command, project-wide edits, fuzzy finding, buffers and windows, quickfix, your own statusline, syntax colouring for your signals, sessions, merges, the undo tree — and finally real Vimscript, where you turn your own repetitive chores into tools and package them like a proper plugin.
It ends with a capstone on a real RISC-V core: bring a new signal out through three files, the way you'd actually do it at work.
By the end you'll edit code without your hands leaving the home row, move through a thousand-line module by intention instead of by arrow key, and do it just as fluently on a headless Linux box as on your laptop. Not tricks — a skill you keep for the rest of your career.