Learn bi

Learn bi

From your first bi . to multiple cursors, the language server and the shell. Every lesson shows a real bi session, step by step.

  1. 01 First steps orientation Open a file or a whole project, tell the modes apart by the status row, and get out again. Nothing to install first — tree-sitter, the file tree and the picker are already there.
  2. 02 Moving around motion The vim motions you know, plus three bi adds: s to jump to anything on screen, ]]/[[ to walk the parse tree, and a search that tells you where you are in it.
  3. 03 Editing: operators, objects, structure editing An operator plus a motion is one edit. bi keeps vim’s grammar, adds the parse tree as a way to say what, and makes surroundings and moving lines built-in commands.
  4. 04 Multiple cursors bi additions Vim has none of this, so the keys are bi’s own. Every command runs at every cursor, and the whole thing is one undo step, including the cursors themselves.
  5. 05 Registers: a ring, not slots bi additions Vim makes you pick one of 36 slots when you yank, which is the wrong moment. bi saves everything automatically and lets you choose when you paste, from a picker you can search.
  6. 06 Search and replace workflow :s for a range of lines, :g for every line that matches, :find and :replace for the whole project — with a preview you prune before anything is written.
  7. 07 Files, buffers and windows workflow The file tree, the file picker, the buffer switcher, the alternate file, and splits you can jump between with one letter.
  8. 08 Code awareness built in Tree-sitter is compiled into bi, so every open file already has a parse tree. Highlighting, block context, symbols, split/join and a handful of marks on the text all come from it — no plugin, no query files to install.
  9. 09 Language servers built in The LSP client is in the binary. Open a file and its server starts: diagnostics on the text, go to definition, references, hover, completion, signature help, code actions and formatting — no plugin, no config file.
  10. 10 Text tools and the shell built in Sorting, aligning, respelling, decoding, generating ids, and piping text through programs — as : commands that work on a selection, a range, or the whole file.
  11. 11 Configuration setup bi works with no config at all. When you do write one, it is a patch over the defaults: say what you want changed and nothing else.