GitHub Copilot for Vim

  Рет қаралды 23,073

John McBride

John McBride

Күн бұрын

Пікірлер: 34
@JohnCodes
@JohnCodes 3 жыл бұрын
Shout out to Tim Pope - you are my hero.
@JohnCodes
@JohnCodes 3 жыл бұрын
@Inna Sits Thanks for the feedback. I'm in no way a copilot poweruser. This was literally the first time trying it. And maybe it's a symptom of how I gave it prompts. But I'm still surprised it couldn't provide a search algorithm for me.
@grzegorzzalewski7187
@grzegorzzalewski7187 2 жыл бұрын
Hi, John, Try not to use comments to chat with copilot but to explain what method you plan to wrote together with copilot. e.g., instead of “define function sort” type “bubble sort an array”
@cody_codes_youtube
@cody_codes_youtube 3 жыл бұрын
Tim Pope! Wow this is a wild demo! I think there is a lot of promise. I really like how you edited your video with the screencast in the back, by the way. I gotta try that out when I get to live coding.
@JohnCodes
@JohnCodes 3 жыл бұрын
tpope is such a legend! And thanks! it's been fun experimenting with different formats
@michaelcarnevale5620
@michaelcarnevale5620 3 жыл бұрын
hey man i rly like ur visual setup.. what app are you using to set yourself against the background like that?
@JohnCodes
@JohnCodes 3 жыл бұрын
I'm using OBS with a greenscreen :D
@michaelcarnevale5620
@michaelcarnevale5620 3 жыл бұрын
@@JohnCodes cool man thnx!
@iljavs
@iljavs 3 жыл бұрын
not sure how the sort borked for you. I got it to do a quicksort right away. 2 trivial comments and some tabs.
@JohnCodes
@JohnCodes 3 жыл бұрын
Yeah I've seen tons of other examples online of it doing simple algorithms. Were you using Go? I know the go support is a bit hit or miss these days.
@marquesbot
@marquesbot 3 жыл бұрын
@@JohnCodes For me it worked normally, one thing I'm using is more specific comments and no double meaning parts about wanting and leaving main as the last thing too (In GoLang)
@xazak357r4
@xazak357r4 3 жыл бұрын
tpope is a hero
@JohnCodes
@JohnCodes 3 жыл бұрын
absolute legend
@theblowupdollsmusic
@theblowupdollsmusic 2 жыл бұрын
How is it supposed to know what to do when you don't even know what you want. Very clear prompting, detailed commenting, and main header comments are necessary from my research. I would love to see you make another attempt after some research on best practices.
@AyushMandowara_xx7
@AyushMandowara_xx7 3 жыл бұрын
thanks for sharing! got my nvim setup done!
@JohnCodes
@JohnCodes 3 жыл бұрын
Nice!! Glad it helped!
@trancongminh2628
@trancongminh2628 8 ай бұрын
can u share me a way setup for nvim?
@Egor-u6m
@Egor-u6m 3 жыл бұрын
Hi! Which extension do you use for tiling?
@JohnCodes
@JohnCodes 3 жыл бұрын
Tmux! I also use a framework called oh-my-tmux
@Egor-u6m
@Egor-u6m 3 жыл бұрын
I meant gnome extension. New terminal window opens on half on the monitor
@Fluffynix
@Fluffynix 3 жыл бұрын
@@Egor-u6m He might be using a tiling WM.
@CarlosMafla
@CarlosMafla 2 жыл бұрын
I really need to switch to NeoVIM to try this!
@محمدصالحعلیاکبری
@محمدصالحعلیاکبری 3 жыл бұрын
Does it work in version 0.5.1 on vim? How to install version 0.6 on Linux?
@JohnCodes
@JohnCodes 3 жыл бұрын
You'll need a nightly build of neo-vim. You can get instructions to getting the latest version of that here: github.com/neovim/neovim/wiki/Installing-Neovim
Жыл бұрын
Trying to chat with it will not give you good results. Here are some better ways of using it: * Start writing the code and let it finish. (Instead of “// define function sort”, write “func sort(“) * Write docs and let it write the corresponding code for you. Or write code and let it write the docs for you.
@RadCirskis
@RadCirskis 2 жыл бұрын
yey! the developers like myself and yourselves will be soon completely replaceable, dispensable, and disposable! O brave new world, you rule!
@MulleDK19
@MulleDK19 3 жыл бұрын
Don't worry, it's amazing; you're just really bad at using it.
@JohnCodes
@JohnCodes 3 жыл бұрын
😂😂😂 i don't deny it; maybe the GitHub team will watch this and improve the user experience for the plugin. I was coming in pretty green for how to use it
@MulleDK19
@MulleDK19 3 жыл бұрын
@@JohnCodes You're trying to use it as a sentient Skynet capable of curing cancer. Don't attempt to have it write entire programs without guidance; it won't do that. It's an assistant, not a replacement. Context is important. If you have nothing but an empty main() it has no context, and won't be of much use. It also knows the current language, and which file you're in. So simply naming the file main.go also doesn't give it much to go on, thus you need more context in the file itself. Also, be more specific. Don't just say "Implement sorting algorithm". Give it enough context to know what it's supposed to do. (
@MulleDK19
@MulleDK19 3 жыл бұрын
Furthermore, at 9:46, the reason it's just printing a comment to implement it, is because that's what you've taught it. You have code above with very little implementation. For example, you have a "print the array", and then don't print the array. And then you have a "define sort function", and it picks up on the fact that you're just writing comments that tell people to do stuff, and then there's nothing there. So it continues like that. It will also pick up on coding style, etc.
@Jeridi
@Jeridi 6 ай бұрын
THanks
@__unaffiliated
@__unaffiliated 2 жыл бұрын
*Sponsored by Melanzana*
@JohnCodes
@JohnCodes 2 жыл бұрын
Love my Mele!
58. First Look at GitHub Copilot and What It Means For Developers
35:13
Better than Copilot? This AI plugin for Neovim is Incredible
12:25
Dreams of Code
Рет қаралды 78 М.
Support each other🤝
00:31
ISSEI / いっせい
Рет қаралды 81 МЛН
How mindblowing is GitHub Copilot for C++?
12:02
Zen Sepiol
Рет қаралды 11 М.
CoPilot Review: My Thoughts After 6 Months
9:45
ThePrimeagen
Рет қаралды 558 М.
Github Copilot MAKES A CLI GAME IN GOLANG FROM SCRATCH?!?!
6:10
ThePrimeagen
Рет қаралды 166 М.
Understanding The Vim Registers
31:12
Beginbot
Рет қаралды 27 М.
GitHub CoPilot AI Coding -- Microsoft's Big Mistake?
11:08
Gamefromscratch
Рет қаралды 32 М.
TeejReacts: "Vim vs NeoVim"
25:17
TJ DeVries
Рет қаралды 17 М.
GitHub CoPilot - Is This The End for Web Developers?
11:00
Chris Sean
Рет қаралды 76 М.
6 ways GitHub Copilot helps you write better code faster
7:00
Coding with Jesse
Рет қаралды 66 М.
Should unskilled devs be using GitHub Copilot?
12:31
Nick Chapsas
Рет қаралды 21 М.