Fireship · @fireship

Neovim in 100 Seconds

Uploaded February 15, 2023 · Length 2:11

Neovim in 100 Seconds

Summary

Learn how to use neovim as a highly extensible keyboard-based editor for programmers in 100 seconds.

  • neovim
  • vim
  • keyboard-based editor
  • productivity
  • programming

Transcript preview

The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.

  1. 0:00

    neovim a highly extensible

  2. 0:02

    keyboard-based editor designed to

  3. 0:04

    optimize the productivity of modern

  4. 0:05

    programmers in 1976 Bill Joy created VI

  5. 0:09

    in 1991 it was improved by Bram mullinar

  6. 0:11

    as Vim then in 2014 neovim came along

  7. 0:14

    it's a fork of them making it a drop in

  8. 0:16

    replacement that's 99 identical for

  9. 0:19

    basic usage all of your favorite help I

  10. 0:21

    can't exit Vim memes are still perfectly

  11. 0:23

    valid but its code base was restructured

  12. 0:25

    with well-documented apis that Embrace

  13. 0:27

    new features from the community which

  14. 0:29

    has resulted in a thriving plug-in

  15. 0:30

    ecosystem most importantly scripting can

  16. 0:32

    be accomplished in not only vimscript

  17. 0:34

    but also Lua an easy to learn

  18. 0:36

    multi-paradigm language that's also used

  19. 0:38

    on platforms like Roblox Lua was used to

  20. 0:40

    write its built-in language server

  21. 0:42

    protocol for code Auto completion it has

  22. 0:44

    a scriptable terminal emulator in

  23. 0:46

    addition to tons of awesome plugins like

  24. 0:48

    telescope a fuzzy finder that can search

  25. 0:49

    across your file system to get started

  26. 0:51

    install neovim then open it with the

  27. 0:53

    nvim command it just like regular Vim

  28. 0:55

    hit I to go into insert mode and start

  29. 0:57

    typing then hit escape to go back to

  30. 0:59

    normal mode use a colon to enter command

  31. 1:01

    mode like when you need to ask the

  32. 1:03

    computer for help but the fun thing

  33. 1:04

    about neovim is customization which can

  34. 1:06

    be handled with the traditional init.vin

  35. 1:08

    file or alternatively in a knit.lua file

  36. 1:11

    inside this file we can use Lua code to

  37. 1:13

    configure basic settings like whether or

  38. 1:15

    not to use tabs or spaces as the config

  39. 1:17

    grows more complex we can break it into

  40. 1:19

    modules in the Lua folder which will

  41. 1:21

    automatically be loaded by neovim from

  42. 1:23

    there we can use a package manager like

  43. 1:24

    Packer to install a color theme like one

  44. 1:27

    dark and some icons to go along with it

  45. 1:28

    you'll need an LSP server for code

  46. 1:30

    completion you might also want nvim tree

  47. 1:32

    to easily explore the file system tree

  48. 1:34

    sitter for syntax highlighting and

  49. 1:36

    Telescope to more efficiently search

  50. 1:38

    across your project from here we can

  51. 1:40

    further customize each plugin as needed

  52. 1:41

    with its own dedicated Lua file now all

  53. 1:44

    this configuration might feel a bit

  54. 1:45

    overwhelming if you just want an IDE

  55. 1:47

    with minimal effort simply install a

  56. 1:49

    starter config like NV chat you'll have

  57. 1:51

    syntax highlighting code completion

  58. 1:52

    along with all kinds of other essential

  59. 1:54

    tools and now you're ready to start

  60. 1:56

    writing code like a 10x engineer now

  61. 1:58

    that we're finished I could tell you how

  62. 1:59

    to exit then but then I'd have to kill