Compile Code The Way Vim Intended.

preview_player
Показать описание
This tutorial is focused on Vim and Neovim's native compiler support. Many people don't realize you can replace many of the popular plugins like Syntastic, ALE, and many others with a feature built into Vim. Vim even comes with many of these compilers.

More Compiler Plugins:

Gutter Signs using Quickfix:

Vim-dispatch:

efm-languageserver:

Let me know what you think and if there is anything specific you would like to learn about.

----------------► Wanna Support Me? ◀︎----------------
Github:
Patreon:

----------------► Wanna Checkout My Dots? ◀︎----------------
Vimrc:
Emacs.d:
----------------► Come Join The Community◀︎----------------
LBRY:
Matrix Space:
Discord:

00:00 Intro
01:18 What Is an Error Message?
02:13 Makeprg
03:10 Quickfix Menu
05:38 Errorformat
08:58 Writting A Compiler Plugin
12:15 Compilers That Come With Vim
13:04 Auto Set Compiler Using ftplugins
15:08 Extension and Improvements
15:21 Gutter Signs
16:12 Async Compilation
17:44 LSP integration
Рекомендации по теме
Комментарии
Автор

A quick correction to the video. Instead of using `set makeprg=%` it is better to use `set makeprg=bash\ %` since % will not always give the full path but using `bash\ %` will not need the full path/relative to be expanded. Feel free to use whatever shell you prefer over bash this is just an example.

GavinFreeborn
Автор

Despite this video being 2 years old and knowing you are a Emacs envoyer, you just showed me the way on what could be possible using Neovim and I can now confidently create a plugin to set the compiler for my TypeScript project and jump to errors like a Chad instead of opening a new Tmux pane and running my command to run tsc and find errors like a soy dev.

aminnairidev
Автор

I didn't know about the `compiler` subsystem, that's awesome! Great stuff

arisweedler
Автор

I would absolutely love a video on a custom statusbar!

-aaa-aaa
Автор

This looks incredibly useful. I've always just exited vim and run the code manually, but running it from within vim is awesome. I have no idea how I haven't seen this feature before

XeroOl
Автор

love to see you make a statusbar from nothing

zeocamo
Автор

Great video please continue, Thanks 👍

kuthathwe
Автор

Good stuff. Thanks! Just what I was looking for.

iAmTheWagon
Автор

this video was very good and taught me alot

wolfdesroyer
Автор

I've come to realize that in Vim plugin world, that if there's several (or dozens, like autocompletion frameworks) that do basically the same thing - it's a difficult problem that everyone has their own opinion about how best to do it. These plugins come and go, like plugin installers, file trees etc. and now the cycle continues but now everything is re-written in Lua.. just because they can be.

craigdanielmaceacher
Автор

This is amazing! I actually learned a lot here, thank you! I'd love to hear more about writing our own statusline with no 3rd party plugins - and about efm-languageserver, I personally find null-lsp easier to configure (and I set up shellcheck for it), but its a great suggestion nonetheless!

ribosomerocker
Автор

Hey, your videos are always really great. One critique I would give is to improve the syntax highlighting so that viewers of the video can easily read what is being displayed. You mention it once that this is what the default is giving you. But if that is the case you should change it so that the video is improved. It would be quite simple to just use a basic vimrc that adds a better colorscheme. Or just change your terminal settings which is actually what is causing this issue. Not vim itself. The default colorscheme is quite readable with sensible terminal settings.

fairclothjm
Автор

Now we can finally say to the emacs guys that vim is more than a text editor.

superlameusername
Автор

What is the font being used in the terminal?

ivanicguildmember
Автор

would love to learn about status bars.

nimcompoo
Автор

Great video. I see some folks using :make to run tests. Quickly running and jumping to broken tests seems like a nice workflow. What are your thoughts on using make for running tests as opposed to compiling?

emmettkotlikoff
Автор

Hi Gavin, I want to ask a question. What is the difference between setlocal makeprg and CompilerSet? I have been confused by it ever since I learn about the :make command. Thank you, great video btw!

diawanchris
Автор

You can use ex set grepprg to see the value it is not as long as echo &

zeocamo
Автор

This video is really cool, I always used dispatch with custom settings but now I want to try this new thing, also what is the colorscheme in the video? is really cool

darh.m.
Автор

Awesome video! I wonder if there's a good way to do this with typescript to get error messages only when you run :make, instead of using a LSP plugin that is sometimes distracting with the real time errors and heavy on memory if you're using an older computer, I actually tried but there doesn't seem to be a way to do it in a similar fashion since you will have to compile your whole project to get the errors instead of just getting them for the current file, so it would be slower as well (and also no context aware autocompletion)

adrianaleon