Fireship · @fireship
Neovim in 100 Seconds
Uploaded February 15, 2023 · Length 2:11
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.
- 0:00
neovim a highly extensible
- 0:02
keyboard-based editor designed to
- 0:04
optimize the productivity of modern
- 0:05
programmers in 1976 Bill Joy created VI
- 0:09
in 1991 it was improved by Bram mullinar
- 0:11
as Vim then in 2014 neovim came along
- 0:14
it's a fork of them making it a drop in
- 0:16
replacement that's 99 identical for
- 0:19
basic usage all of your favorite help I
- 0:21
can't exit Vim memes are still perfectly
- 0:23
valid but its code base was restructured
- 0:25
with well-documented apis that Embrace
- 0:27
new features from the community which
- 0:29
has resulted in a thriving plug-in
- 0:30
ecosystem most importantly scripting can
- 0:32
be accomplished in not only vimscript
- 0:34
but also Lua an easy to learn
- 0:36
multi-paradigm language that's also used
- 0:38
on platforms like Roblox Lua was used to
- 0:40
write its built-in language server
- 0:42
protocol for code Auto completion it has
- 0:44
a scriptable terminal emulator in
- 0:46
addition to tons of awesome plugins like
- 0:48
telescope a fuzzy finder that can search
- 0:49
across your file system to get started
- 0:51
install neovim then open it with the
- 0:53
nvim command it just like regular Vim
- 0:55
hit I to go into insert mode and start
- 0:57
typing then hit escape to go back to
- 0:59
normal mode use a colon to enter command
- 1:01
mode like when you need to ask the
- 1:03
computer for help but the fun thing
- 1:04
about neovim is customization which can
- 1:06
be handled with the traditional init.vin
- 1:08
file or alternatively in a knit.lua file
- 1:11
inside this file we can use Lua code to
- 1:13
configure basic settings like whether or
- 1:15
not to use tabs or spaces as the config
- 1:17
grows more complex we can break it into
- 1:19
modules in the Lua folder which will
- 1:21
automatically be loaded by neovim from
- 1:23
there we can use a package manager like
- 1:24
Packer to install a color theme like one
- 1:27
dark and some icons to go along with it
- 1:28
you'll need an LSP server for code
- 1:30
completion you might also want nvim tree
- 1:32
to easily explore the file system tree
- 1:34
sitter for syntax highlighting and
- 1:36
Telescope to more efficiently search
- 1:38
across your project from here we can
- 1:40
further customize each plugin as needed
- 1:41
with its own dedicated Lua file now all
- 1:44
this configuration might feel a bit
- 1:45
overwhelming if you just want an IDE
- 1:47
with minimal effort simply install a
- 1:49
starter config like NV chat you'll have
- 1:51
syntax highlighting code completion
- 1:52
along with all kinds of other essential
- 1:54
tools and now you're ready to start
- 1:56
writing code like a 10x engineer now
- 1:58
that we're finished I could tell you how
- 1:59
to exit then but then I'd have to kill


