Before watching, I thought it was a tutorial on vim since I struggle with it, but this setup really fascinated me. Now I'm gonna try to use vim more on my coding. Maybe one day I‘ll reach this level too^^ Thanks for the inspiration
I found this video informative, detailed and on point. You prepared yourself properly, vídeo is structured, with proper pace and sequence of events. Your voice is calm too, haha
Kantan, I watched your video on freecode camp, you nailed it man. I learned micro service arc; super helpful. I use vim, and I like your terminal asthetics althouhg not fan of emojis, plain and classic best suited for me. Thank you, for enlightening lives of millions like me!
This video helps me in configuring my vimrc, though i want to make my vim more like jupyter notebook but not find anything which gives vim an interactive layout like jupyter. At last Thanks for video it really helps me.
To be fair, a lot of what is shown in this video is not needed or even recommended for beginners, since that is the group of people that can benefit the most from understanding and using the built-in features that plugins often seek to replace. You can use :define and :include as a replacement of "Go to definition" and "Go to reference" of language servers. However, if you really need languages servers, I would suggest to simply install neovim with its native LSP features instead of running COC which is slower and more error-prone. Instead of nerdtree, maybe you can get away with :Ex, :find, :h args and :h buffers. When you actually have a need for faster navigation, fzf.vim (also shown in this video) is really good or command-t. In many cases, you are actually searching patterns within your code base and not simply files. Therefore, it would be more appropriate to use :vimgrep and :grep. Adding plugins for language support can be a bit too much when you only want compilation. Behind the scenes, such plugins set little more than a decent :makeprg and :errorformat, which you can configure on your own according to your requirements. As a replacement of code formatter plugins, vim provides :formatprg to run external programs. As an alternative, visually selected text can be piped to external programs via !{motion}{filter}
Awesome video, I'm really enjoying your channel. Please what are the commands for "Go to definition" and for commenting multiple lines? I couldn't find that. Thank you
Thanks! I explain go to definition in the video. I even added it to the vimrc linked in the description. Commenting lines as well. All of it is in the vimrc ☺️
Thank you! When you move your cursor to a particular position in a file, Vim remembers this and lets you move around between where you are and where you were. CTRL-O goes to the older position, and CTRL-I or tab goes to the newer one.
With fuzzy finder, I will also just do a search for Recent Files, and the last file I was in will be at the top of the list. Hit return and I'm back where I came from. Ctrl-O is great, but if you have polluted your jump list while in the new file, it's a bit tedious vs the fzf recent file list method.
overall I like the video, taught me some vimrc magic although I adapted it to macos using brew in place of wget! On a psuedo-related note, however, I have been using kite in VSCode, PyCharm, Sublime, and apparently i had kite-vim loaded too; kite and coc conflict with each other it seems. I get 'Kite: disabling coc.nvim's completion in this buffer' every now and then, and the net-lookup-fixes seem to suggest uninstalling kite-vim, but I am searching first for some sort of co-existence solution, any thoughts. my platform is macmini(2018) macos v12.3.1
For some reason file finder doesn't work for me, I get an error [Command failed: rg --files --hidden --follo... ] in the window and that's it, no files, I can only exit it with escape. Any tips?
I’d need to see the full error but my guess is that you haven’t installed ripgrep. Try to run ‘brew install rg’ if you are on a Mac with homebrew installed
@@kantancoding thanks for the reply, i myself love cli, but while doing python project especially the one related to data science, i always struggle with code execution especially the execution of selected part of code and debugging the code, i just can't figure it out.
@@ravipratapmishra7013 This really depends on the structure of the application. Like how modular are the parts of the code that you are trying to execute? Is everything tightly coupled? Do you use dependency injection? Do you have unit tests? I find that if there's a situation where I need to debug a piece of code that is tightly coupled with the overall application, it's best to create a unit test for it with maybe some mock dependencies. Or if you are trying to debug a monolith, do you have access to local test environment? If so I'd try to hack around on my local and narrow down the issue there. There are also graphical debuggers for vim. But even when I have them installed I find that I rarely use them. But that's just my personal preference. You can have a look at github.com/puremourning/vimspector. And if I can find some time maybe I can look into planning a video for this type of thing of enough people are interested.
Before watching, I thought it was a tutorial on vim since I struggle with it, but this setup really fascinated me. Now I'm gonna try to use vim more on my coding. Maybe one day I‘ll reach this level too^^
Thanks for the inspiration
Vim has a steep learning curve initially but then it becomes quite intuitive. You just have to grind through the initial hurdle. Good luck! 🙂
I found this video informative, detailed and on point. You prepared yourself properly, vídeo is structured, with proper pace and sequence of events. Your voice is calm too, haha
Haha thank you for your kind words and your feedback 😆🙂
Excellent video!! Not only did I learn about vim, I learned a lot about Unix!
Thank you 🙏 Glad it helped!
Kantan, I watched your video on freecode camp, you nailed it man. I learned micro service arc; super helpful. I use vim, and I like your terminal asthetics althouhg not fan of emojis, plain and classic best suited for me. Thank you, for enlightening lives of millions like me!
No problem! Thank you for giving my content a chance. Sometimes I strip out the emojis as well 😂
what a chad, he set up the whole work environment in less than an hour
Your turn brother 😎
I struggled to setup my vim, you saved the day. Thank you very much.
Awesome! You’re welcome. Enjoy 😉
Thank you bro! Been looking for a video that explains everything clearly
No problem at all bro!
This video helps me in configuring my vimrc, though i want to make my vim more like jupyter notebook but not find anything which gives vim an interactive layout like jupyter.
At last Thanks for video it really helps me.
Glad I could help!
Incredible... Thank you for taking the time to do this!!
My pleasure!
@Kantan, thank you so much for this video!! This is very helpful :) Great job!
Thank you! I’m glad you liked it 🙂
Great video! it would be awsome if this was something you could roll out in one command on either windows or mac. I love this!
Yeah, that would be cool but I think that there are too many moving parts. The command would likely break after one of those parts changes something 🤣
To be fair, a lot of what is shown in this video is not needed or even recommended for beginners, since that is the group of people that can benefit the most from understanding and using the built-in features that plugins often seek to replace.
You can use :define and :include as a replacement of "Go to definition" and "Go to reference" of language servers. However, if you really need languages servers, I would suggest to simply install neovim with its native LSP features instead of running COC which is slower and more error-prone.
Instead of nerdtree, maybe you can get away with :Ex, :find, :h args and :h buffers. When you actually have a need for faster navigation, fzf.vim (also shown in this video) is really good or command-t. In many cases, you are actually searching patterns within your code base and not simply files. Therefore, it would be more appropriate to use :vimgrep and :grep.
Adding plugins for language support can be a bit too much when you only want compilation. Behind the scenes, such plugins set little more than a decent :makeprg and :errorformat, which you can configure on your own according to your requirements.
As a replacement of code formatter plugins, vim provides :formatprg to run external programs. As an alternative, visually selected text can be piped to external programs via !{motion}{filter}
Awesome, thank you!
No problem 😉 enjoy!
A very informative vim video, what did you key did you map to trigger auto completion
I think it’s tab but I honestly don’t know since it’s just muscle memory 😂
Awesome video, I'm really enjoying your channel. Please what are the commands for "Go to definition" and for commenting multiple lines? I couldn't find that. Thank you
Thanks! I explain go to definition in the video. I even added it to the vimrc linked in the description. Commenting lines as well. All of it is in the vimrc ☺️
great ❤
Awesome video! What font and terminal do you use?
I don’t remember the font from this video but I use iterm2
hi , nice video
looking for this .
Awesome 😎, thank you! 🙏
bro docker seems overkill for such a use case vimrc can be sourced to your liking; plugins might cause a issue but still a minor one
How do you jump back to your code from a definition or reference? Awesome video too!!!
Thank you! When you move your cursor to a particular position in a file, Vim remembers this and lets you move around between where you are and where you were. CTRL-O goes to the older position, and CTRL-I or tab goes to the newer one.
With fuzzy finder, I will also just do a search for Recent Files, and the last file I was in will be at the top of the list. Hit return and I'm back where I came from.
Ctrl-O is great, but if you have polluted your jump list while in the new file, it's a bit tedious vs the fzf recent file list method.
overall I like the video, taught me some vimrc magic although I adapted it to macos using brew in place of wget! On a psuedo-related note, however, I have been using kite in VSCode, PyCharm, Sublime, and apparently i had kite-vim loaded too; kite and coc conflict with each other it seems. I get 'Kite: disabling coc.nvim's completion in this buffer' every now and then, and the net-lookup-fixes seem to suggest uninstalling kite-vim, but I am searching first for some sort of co-existence solution, any thoughts. my platform is macmini(2018) macos v12.3.1
As far as I know, they aren’t meant to be used together as they have conflicting functionality. Probably best to just choose 1
For some reason file finder doesn't work for me, I get an error [Command failed: rg --files --hidden --follo... ] in the window and that's it, no files, I can only exit it with escape. Any tips?
I’d need to see the full error but my guess is that you haven’t installed ripgrep. Try to run ‘brew install rg’ if you are on a Mac with homebrew installed
thanks so much!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Of course, my pleasure!
Out of context, but what's your theme named? I really like it and I'm looking for good themes.
I use two themes in this tutorial and I explain how to install and configure both of them in the video
@@kantancoding Aight thanks
What did you type to find the definition of the variable or the class in 33:27?
I’m using the key mapping that we configure in this video. In the vimrc it’s set to “gd” for go to definition.
hey do you have projects for c++ ??
I don’t
Can we have a list of themes that we can install and add? I'd like to have Dracula installed.
Actually I only use these two themes so I don’t know if there’s a Dracula theme for vim 😔
Do you have any video regarding you python workflow including execution and debugging?
I honestly just do everything from the CLI. Is there anything specific that you want to see?
@@kantancoding thanks for the reply,
i myself love cli, but while doing python project especially the one related to data science, i always struggle with code execution especially the execution of selected part of code and debugging the code, i just can't figure it out.
@@ravipratapmishra7013 This really depends on the structure of the application. Like how modular are the parts of the code that you are trying to execute? Is everything tightly coupled? Do you use dependency injection? Do you have unit tests? I find that if there's a situation where I need to debug a piece of code that is tightly coupled with the overall application, it's best to create a unit test for it with maybe some mock dependencies. Or if you are trying to debug a monolith, do you have access to local test environment? If so I'd try to hack around on my local and narrow down the issue there. There are also graphical debuggers for vim. But even when I have them installed I find that I rarely use them. But that's just my personal preference. You can have a look at github.com/puremourning/vimspector. And if I can find some time maybe I can look into planning a video for this type of thing of enough people are interested.
@@kantancoding thank you for this detailed answer.
please can somebody tell me hoe to log back into the admin
I can try to help but I’m not sure what you mean “log back into the admin”
@@kantancoding i mean you all the changes are working when you are the admin user not the original user
@@manavpreetsinghcheema3094 it’s in the beginning of the video at around 6:40👍
What key is leader leader??? this
Hey thanks for watching., It’s in the video 👍
I love you.
Second video please
Was there something specific that you had in mind?
I really don't like this video, I feel completely scammed out of my time.
Why didn't you named it: guy spends a lot of time not in vim.
😂🤣 You are absolutely right. I will change the video name now.
Yeah I'd rather just get a text editor that works rather than spend 40 minutes polishing a turd.
vim is life bro. Remember that…
Hah, if only it took 40 minutes...
To each their own.
vim .vimrc = !!
In terminal just type that !! To run last command