Compiling C++ for Competitive Programming in Vim

preview_player
Показать описание
A video on how to compile C++ files for Competitive Programming quickly and elegantly in Vim.

Code:
Рекомендации по теме
Комментарии
Автор

How to i set this in packer? Idk how to "convert" your source

datryen
Автор

when ever I map function keys, mapping isn't working only normal functions like (sound, brightness )works

Jiostores
Автор

At one point in the video I said "remap" when I meant to say "keymap" but I'm too lazy to change that now.

mzzzchael
Автор

Brother when You Compilerunwithfile"input.txt" new windows appear with line number in your neovims.but in my neovim it does't appear.how to do that? If anyone knows please comment

tafsirahmed
Автор

where should i save this file on macos??

Jiostores
Автор

Thank you! I will see if I can write this in lua. This is dope!

syzygy
Автор

You have to make a video on your terminal configuration! It is absolutely beautiful 😍

Odys
Автор

I dont understand how do this. I'm new in nvim and linux. Anyone who can help me?

santymrk
Автор

Hi Michael, I'm quite new to vim but this seems super useful for c++. I'm just a bit confused as to where I have to add this file. Do I add it in my init.vim. (I'm using Neovim)

anshumankomawar
Автор

thank u soooo much! I spent the whole day finding solution, but nothing is as good as this

nikipon
Автор

Thanks for the great tutorial!
Had one doubt. Where do I add the cp.vim file and how to reference it for using the compilation thing which you demonstrated in the video?

madmax
Автор

When i compile i am getting this error:

'.' is not recognized as an internal or external command,
operable program or batch file.

PLZ HELPPP

godzilla
Автор

And can this code work in windows platform

purnojyotibhattacharjee
Автор

Great config and loved your explanationas well. Hoping to see more videos soon....!!

AshuRane
Автор

hey, what is the name of the editor font you are using ?

xhb
Автор

Hi, thanks for this video. It's possible to make something similar in VIM (not Nvim) ? I've tried to replicate this on but doesn't work (some problem with term and && in command for CompileAndRun). Thank you :-)

AndreaDiPietro
Автор

Very cool config! Thanks for sharing.

I think I've spotted one problem within the code. Seems like buffercmd variable is not actually used and it makes split_term_style not usable. I opened a PR. Please have a look when you have time.

temirzhanyussupov
Автор

this works on nvim, but it doesn't work on vim 8.1. maybe vim 8.2 works.

kevwjin
Автор

Good content and explaination. Subscribed. More Vim tricks, please. ❤

AnNguyen-pbzu
Автор

How did you configure your nvim to work with clangd for headers like #include <bits/stdc++.h> or <vector> on MacOS?

I’ve been having a hard time with it using Coc and Ycm

ferran