How to Configure Vim like VSCode

  Рет қаралды 744,098

Ben Awad

Ben Awad

4 жыл бұрын

Learn how to setup Vim like VSCode. I use Neovim, coc.vim, NERDTree, gruvbox, and more...
init.vim: gist.github.com/benawad/b768f...
coc-settings.json: gist.github.com/benawad/e187d...

----
Follow me online: voidpet.com/benawad
#benawad

Пікірлер: 644
@VanStabHolme
@VanStabHolme 4 жыл бұрын
I use Vim for three reasons: 1) it's open-source 2) it can be ran in console 3) it doesn't require me to upgrade my pc so I can spend more money on food
@DanielClear2
@DanielClear2 4 жыл бұрын
Because I really care for open-source (!)
@VanStabHolme
@VanStabHolme 4 жыл бұрын
@@DanielClear2 I would prefef open-source, but I have nothing against proprietary stuff. Afterall, creator of a program can decide whenever he wants to hide bad code
@lxmbdaemptiness209
@lxmbdaemptiness209 4 жыл бұрын
Объясни, что за fzf и ctrlp тут пишут в комментариях, говоря о быстроте? Думаю, это что-то с хоткеями?
@lxmbdaemptiness209
@lxmbdaemptiness209 4 жыл бұрын
@@idopshik Я рандомно залетел из рекомендаций и мне (похуй) на всю эту вим/емакс движуху. Быстрый ответ на мой быстрый вопрос я ждал, а получил то, что получил. Ну лана.
@thekaleb
@thekaleb 4 жыл бұрын
VS code is open source.
@muhammad-bin-zafar
@muhammad-bin-zafar 2 жыл бұрын
Notice how he's addressing his Vim Plugs as "him". This guys associates some real feelings with vim.
@uuu12343
@uuu12343 2 жыл бұрын
You gotta respect the vim plugins If you take care of your plugins, the plugins will take care of you
@tuananhdo1870
@tuananhdo1870 2 жыл бұрын
I thought it's normal in English
@User-nc2lf
@User-nc2lf 2 жыл бұрын
@@tuananhdo1870 nah we usually use it that the
@Amplifity
@Amplifity 4 жыл бұрын
Dude, this is tight. I've been slowly migrating my setup over to NeoVim. I'm doing that to clean it up a bit. Long time Vim user, my setup kind of became a junk drawer. Nicely done with this video.
@victorrogers1946
@victorrogers1946 4 жыл бұрын
What is drawing people to NeoVim other than it being new? I was hoping the guy in the video would answer, but he just said "I'm going to go with Neovim because that seems like what other people are doing". Every time I've researched this it just seems like Neovim = Vim with a slightly refactored code base.
@sergey_c
@sergey_c 4 жыл бұрын
@@victorrogers1946 , I'm know vim for about 15 years. Using it as plugin for Webstorm now. I think that vim is ugly as standalone ide. Because you need to spend huge amount of time before you will get it work. It's kind of child of linux philosophy when you need to configure app if you want to use it. And it's worse to spend a lot of time solving someone's configuration errors and bugs. Yeah, it's kind of open source. This is why I'm using Mac now.
@peterarbeitsloser7819
@peterarbeitsloser7819 3 жыл бұрын
@@victorrogers1946 NeoVim is written in much cleaner and less code, meaning it's faster and more retainable, meaning the developers are able to implement features quicker. Everything clear now?
@ironosenshicas
@ironosenshicas 3 жыл бұрын
@@victorrogers1946 The biggest reason to switch to nvim is because it can use asynchrone calls. Which with things like coc.nvim make the experience feel smoother and faster.
@enricosevenfoldism
@enricosevenfoldism 3 жыл бұрын
@@peterarbeitsloser7819 no , u didnt answer his question tho
@BrandonSWie
@BrandonSWie 4 жыл бұрын
I had no idea at the very beginning what I am doing because I got into my coding journey a half year ago as JS developer and mostly used VScode. However, I've learned a lot along the way with this video to configure the neovim settings with you. Thanks a lot for the tips. I'm literally forcing myself to use vim settings for VScode as well, found it really frustrated (many times just couldn't be patient and rolled back and forth like tens of times), but getting used to it a little by little. Cheers and respects to all who are in VIM world.
@tuananhdo1870
@tuananhdo1870 2 жыл бұрын
how about your progress now?
@neno720
@neno720 Жыл бұрын
how about your progress now? ²
@bugs389
@bugs389 4 жыл бұрын
Thanks for this guide Ben, this'll save many of us a lot of time.
@Nerketur
@Nerketur 3 жыл бұрын
I love this. Never knew you could make vim similar to vscode. But the best part was the ending. "Yeah so I did all this work to make Vim like VSCode to fix an issue with lag, but then realized the problem wasn't VSCode at all!" Yeah, the language server is slow. Its slow enough that to improve performance, now a much smaller subset is loaded on file load while the rest of it loads in the background, in vsc
@skriems
@skriems 4 жыл бұрын
Yeah, I would also suggest setting up fzf with bat to preview files and using ripgrep for the internal grep cmd. And I really like vim-fugitive which enables you to work in `:Gdiff`'s or handle merge conflicts etc
@aj35lightning
@aj35lightning 4 жыл бұрын
bruh, thanks for documenting and putting this video out even if you switch back. love the way you explain things, really helps trailblaze my discovery process and save me hours of time.
@lost4468yt
@lost4468yt 3 жыл бұрын
I'd recommend fzf and ranger instead of NerdTree. NerdTree is slow, doesn't work well with tabs, makes it hard to pick exactly which buffer you want something opened in, etc. I use fzf to quickly jump to a file I know (or roughly know) the name or directory of. Then I use ranger (not normal range, vim ranger, which just runs ranger in nvim) if I need to actually browse the directory structure because I want to get a better understanding of iit, or because I don't know what I'm looking for.
@florianhennig4778
@florianhennig4778 4 жыл бұрын
Hi! Great video, actually my setup is very similar. As others mentioned: I'd recommend giving fzf a try. The huge advantage is that you can enable a preview window of the search location, which is neat. Also there is vim-clap now that kind of emulates the floating window you get when hitting ctrl-p in VScode.
@k1mpman
@k1mpman 2 жыл бұрын
Great video. These are some great quality of life plugins. I also come from vscode and I wanted to do something similar so this is exactly what I looked for. Thanks a bunch
@silverv.2862
@silverv.2862 4 жыл бұрын
The video is of really nice quality, thanks. Audio quality is good too!
@rodgeroliverb
@rodgeroliverb 4 жыл бұрын
Awesome video man, and nice setup!!
@BrodieRobertson
@BrodieRobertson 4 жыл бұрын
I've been hopping back and forth between between Vim and Vscode and I just never put the effort into actually getting Vim to be a nice IDE but I think that with a few tweaks this might be just what I've been wanting.
@travisw5076
@travisw5076 4 жыл бұрын
100% worth it especially if you are editing non local files...its on every machine.
@mlshenhua1
@mlshenhua1 4 жыл бұрын
@@travisw5076 vscode remote is enough.
@zacharystreeter1965
@zacharystreeter1965 4 жыл бұрын
Language-server-protocals (LSP) are changing everything for vim and neovim really quickly.
@JDStone20
@JDStone20 4 жыл бұрын
ViM will do almost all the stuff of most plugins by itself. I do like the coc autocomplete so I don't have to hit or to get it to display.
@JDStone20
@JDStone20 4 жыл бұрын
@CooCooWizard What problem did you have with VIM? Just curious
@alexcarreira6982
@alexcarreira6982 4 жыл бұрын
Thank you for sharing your configuration. It's fascinating to see this vim setup and how you work / think about problems.
@steav677
@steav677 4 жыл бұрын
I know that gd stuff, but not ctrl+o. Super awesome features!
@Serstyle59
@Serstyle59 4 жыл бұрын
Thanks bro we discuss about that laggy stuff together and yes at my work we have large monorepo and it’s kind of laggy with vim extension so I probably gonna try to go for only vim and see if it I can handle it !
@lyingcat9022
@lyingcat9022 4 жыл бұрын
Great video bro! Found a few things I like :) thanks!
@javadziaebrahimi3568
@javadziaebrahimi3568 4 жыл бұрын
i love you're explanation thank really useful i want to start vim right now😃
@omarali2256
@omarali2256 Жыл бұрын
just found this channel, i think you're the only cs bro I'm willing to listen to
@owoled282
@owoled282 4 жыл бұрын
I knew a found your channel for a reason. Will be trying to replicate this setup
@SayfSentinel
@SayfSentinel 4 жыл бұрын
Always been a fan of your vimrc
@MrDimakoles
@MrDimakoles 3 жыл бұрын
Many thanks for time and efforts on recording this
@alexistroncoso7098
@alexistroncoso7098 4 жыл бұрын
Definetely what i was looking for. Many thanks!! keep on going this way
@alfieqashwa5257
@alfieqashwa5257 4 жыл бұрын
wow... thank you for autocompletion and prettier setting, bro
@davidb129
@davidb129 4 жыл бұрын
This is your MVV I have seen so far. Very Nice! MVV = Most Valuable Video
@peterarbeitsloser7819
@peterarbeitsloser7819 3 жыл бұрын
That didn't make it less to write xD
@andrewiglinski148
@andrewiglinski148 2 жыл бұрын
Fuck... I just became obsessed with Python after working with node for years and now I'm 100% onboard the vim train
@andresorrego6778
@andresorrego6778 4 жыл бұрын
Amazing stuff. Installing some plugins right now.
@RichardDavenport
@RichardDavenport Жыл бұрын
The first Ben Awad video that I've liked!
@tylerbenton4495
@tylerbenton4495 4 жыл бұрын
Thanks. I needed this.
@sergeichwelcome
@sergeichwelcome 3 жыл бұрын
Thanks Ben for cool vim config !
@jayphen
@jayphen 4 жыл бұрын
One thing that works massively better in vim (vs vim emulation in VSCode) is folds. In VSCode I just don't use them at all because they're too buggy with vim. In vim I use them constantly, and it really helps fight the urge to break everything out to separate files
@xTommyDee
@xTommyDee 4 жыл бұрын
damn this is clean. i've never used vim but this is definitely is making me tempted to try it out
@bawad
@bawad 4 жыл бұрын
Do it!!
@PaxHominibusBonaeVoluntatis
@PaxHominibusBonaeVoluntatis Жыл бұрын
Hi Ben, it was great! Thank you very much! Life's easier. Cheers!
@frydac
@frydac 4 жыл бұрын
NerdTreeFind command is better to use by default imo (than toggle), it opens the tree on the current file.
@sifiso5055
@sifiso5055 4 жыл бұрын
You've earned yourself another subscriber
@fthn10
@fthn10 4 жыл бұрын
You saved my life sir, thankyou
@yatsuk
@yatsuk 4 жыл бұрын
Good video which shows why VSCode is more popular - because it works out of the box
@bawad
@bawad 4 жыл бұрын
exactly
@aoeut9001
@aoeut9001 4 жыл бұрын
thank you for your sharing, I'm Chinese, listening to English is difficult, but tank you even for helping me practice listening.^_^
@alexjia8435
@alexjia8435 4 жыл бұрын
😂😂😂这节目不是做给geek的嘛,都能当评书听了。
4 жыл бұрын
I think the extension I would miss the most is the Apollo Graphql one. Having autocomplete when typing my queries gives me a lot of confidence. Also, I recommend to add the browser extension Saka Key to get used to keyboard navigation on the web.
@bawad
@bawad 4 жыл бұрын
I usually write my queries/mutations in graphql playground I'm using cvim in chrome
@MosesJeromeCLucas
@MosesJeromeCLucas 4 жыл бұрын
This made me resetup my VIM and now I'm loving it. Specially I really can't get used to.VSCode. I just can't leave VIM
@quazar-omega
@quazar-omega 3 жыл бұрын
Just -:q!- unplug your PC
@Oswee
@Oswee 4 жыл бұрын
Some time ago there was some issues with things like html`` and css`` which is required for web components development. But, it seem it is worth to try this vim-beast one more time. Nice vid. BTW - about VS Code lagging i noticed the same when working with deep protobufs. IntelliSense sometimes took more than a second to show up the definitions. In vim same thing was faster than instant.
@_marcinrakowski
@_marcinrakowski 4 жыл бұрын
well done, very informative, thanks
@moai545
@moai545 3 жыл бұрын
Thank you very much, Ben!!!
@pablopunk
@pablopunk 4 жыл бұрын
coc.nvim integrates the language server from vscode inside neovim, so that's why you get the same behavior on large projects
@pablopunk
@pablopunk 4 жыл бұрын
@@shadyisaac121 yes, work on smaller projects. Haha just kidding. To be honest I don't have any issues working in medium sized projects, I'm guessing there's no way to make it faster if it has to scan a lot of stuff
@muhammad-bin-zafar
@muhammad-bin-zafar 2 жыл бұрын
Dude @Ben Award, just some thing I felt... You looked much cooler 1 year ago than now with glasses and that hairstyle. Really a fan of yours, and just threw my opinion at your comment section 🙂
@vado4003
@vado4003 4 жыл бұрын
For beginners I recommend installing the VIM extension in VSCode which just turns VSCode into VIM, once you get used to editing with VIM you can move to full VIM (or stay)
@qvindicator
@qvindicator 4 жыл бұрын
pussy
@ankanroy2931
@ankanroy2931 3 жыл бұрын
@@qvindicator toxic boyy detected
@nomitanarzary9213
@nomitanarzary9213 2 жыл бұрын
No using Vim first is better, VSCode should on be used for big projects, suppose say you are creating an OS, I will recommend to use IDE for editing and managing files (Editing only because you can't run an OS on an IDE).
@winter_light
@winter_light 3 жыл бұрын
I do not recommend coming to Vim with the mindset of creating an IDE in your terminal. That said, Vim is a very powerful tool and if you invest the time to learn how it works it will take you very far. In other words, use Vim for all it’s worth before looking for a plugin to help you out. Anyone who (like me) jumps right to installing a bunch of plugins-whether in a spree of grabbing anything that looks interesting or just to copy someone else’s configuration-will likely end up with an unmaintainable mess of a tool that doesn’t work consistently, may not work at all or works about as slow as the IDE you wanted to break free of.
@rewindyourmind321
@rewindyourmind321 Жыл бұрын
Hey! I know it's been a while but I'm curious - I'm currently running IntelliJ with a Vim plugin but am thinking of using NeoVim as a secondary text editor. Do you have any suggestions so far as what should and shouldn't be implemented within Vim? I'm trying to conceptualize how my workflows would look between the two. Thanks!
@winter_light
@winter_light Жыл бұрын
@@rewindyourmind321 Hi, Sorry for the late response. I think the decision to use Neovim as a secondary text editor is a good one. Neovim comes with sane defaults. I would suggest starting with a clean config. Don't straight away use it for work. Play with it casually until you get a hang of it. Figure out what feature are a must for you and see how that can be tackled without any plugins. If it requires multiple keystrokes, then assign it to a keybinding. Do the same for other stuffs that you do frequently. Anything that makes you more productive is a win. I am not against plugins, but take your sweet time to get there so that you really know that you need a plugin to do so. These days I am mostly using emacs. After a certain point I reached a few things in Vim that I couldn't get around without being hacky. I also felt that emacs provided more value and better packages and overall a cohesive environment that works consistently for my usecases. There's no overhead of choosing between lua and vimscript or vimscript9. There's no headache of changing terminal theme to make you editor theme work well and a few other great packages like org mode and magit were killers for me in the switch.
@DavidSmith-ef4eh
@DavidSmith-ef4eh 4 жыл бұрын
Cool. But I like using my mouse from time to time. Also the debug features (attaching to chrome or node in vsc are a blessing)
@h.kubilay6160
@h.kubilay6160 4 жыл бұрын
you can do live server with vim also. i think its called bracey.
@moonythm
@moonythm 4 жыл бұрын
this video made me want to learn vim lol, im also having issues with vscode lagging a lot
@bawad
@bawad 4 жыл бұрын
do it benawad.com/vim
@zeocamo
@zeocamo 4 жыл бұрын
You need to make a list the pain you got when working and that use 5-10 mins per day to fix then after 30 days you will never stop using vim
@ianzen
@ianzen 4 жыл бұрын
Absolutely worth learning, even if you're just gonna use it for editing on a remote machine. Many popular editors support vim keybinds so your time spent learning vim isn't wasted when working in another editor.
@zeocamo
@zeocamo 4 жыл бұрын
@@ianzen and any good linux app you vim keys ... Ex git, man
@wile9763
@wile9763 4 жыл бұрын
Open a terminal. Type 'vimtutor'. Press Enter.
@wojciechchodkowski2114
@wojciechchodkowski2114 4 жыл бұрын
Did you ever seen vimspector? I would really appreciate if someone have a knowledge how to configure this tool for python or js/ts.
@howieburd
@howieburd 3 жыл бұрын
great video, just curious, what is the keyboard visualizer that you are using?
@romanext921
@romanext921 2 жыл бұрын
Coc is a fun name for a plugging. Was waiting for u to say the acronym 😂
@vcfvct
@vcfvct 4 жыл бұрын
coc-git is also good for git inside vim
@danielorodriguez1689
@danielorodriguez1689 4 жыл бұрын
I recommend to use more leader combinations, which allow you to use mnemonics and avoid that much chords, which are very bad for your fingers
@algumrandomai5516
@algumrandomai5516 3 жыл бұрын
I personally prefer logical bindings rather than mnemonics D:
@Danielo515
@Danielo515 3 жыл бұрын
@@algumrandomai5516 It is basically the same.
@adityasadawarte2532
@adityasadawarte2532 4 жыл бұрын
This video inspired me to use vim (neovim) after a long time. I encountered the same issue where the language server is incredibly slow sometimes, after few trial and errors, upgrading to node 13 made it insanely fast, maybe faster than vscode. You should give that a try.
@bawad
@bawad 4 жыл бұрын
I actually noticed that too, my language server has been faster recently
@bawad
@bawad 4 жыл бұрын
I actually noticed that too, my language server has been faster recently
@musthavechannel5262
@musthavechannel5262 4 жыл бұрын
In VsCode, things are good but autocomplete is slow on large projects so I migrated to vim by setting up some plugins .. but before I could set up plugins - Installed a plugin that could set up plugins - Browsed through a list of Vim plugin managers - Went through the docs of my selected plugin manager Then I setup my Vim coding environment by - Setting up autocomplete by - setting up a language server, by looking up documentation for my specific language and spending some time on trial and error - setting up snippets - setting up bracket matcher - (three more things) - Setting up my file explorer - setting up modified status for my files but Vim is to good for such an insignificant thing so I installed an extension that marks my files as modified even if I happen to open them - file icons? Vim too good for dat, so I show text instead of file icons. But the text didn't show up so - installed a special system-wide font for showing file icon text in the file explorer - writing code for file explorer to automatically select my current file - gazed victoriously on the awesome code that I wrote for my file explorer to HIGHLIGHT CURRENT FILE - setting up fuzzy file lookup by - setting up special configuration on my terminal emulator because it wouldn't work without that - had to ignore everything ignored by git for performance reasons - an additional "feature" I get by it is being unable to lookup files and class definitions in libraries. Probably it is not the Vim way anyway. - Not telling you but I sure did - Setup a status bar - then was disappointed when my previously installed system-wide font didn't have icons for status bar so - I looked up and installed a different system-wide font - Struggled with tabs vs buffers for a while ... but after spending all this time, I felt rewarded when the autocomplete on my large TS project was, still very slow, but as a bonus all other things were clunky as well. Perhaps, that's the Vim way.
@alenygam6048
@alenygam6048 3 жыл бұрын
Thanks for the snippets tip!
@pengekcs
@pengekcs 3 жыл бұрын
I might actually try it sometime ;) I like vscode, but the fact it's written using electron/js, well too many layers to go through compared to apps written in c / c++.
@kyp0717
@kyp0717 4 жыл бұрын
Hi Ben. Thanks again for this great video. It was helpful. Can you provide more detail on the renaming feature? Did you remap it to f2? What was the original function map to? Was it part of coc?
@BrandonClapp
@BrandonClapp 2 жыл бұрын
I'm late to the party, but on the coc readme it shows a command in the vim file that maps renaming symbols to rn
@AdamSmith-de5oh
@AdamSmith-de5oh 4 жыл бұрын
What you're saying about vim being better because it's more minimal and faster than vscode, but vscode being better because the features seem more polished got me thinking there's a market for something in the middle. I want vscode but built from the ground up to use vim. I want all the default good plugins as standard in a simple app I can download. I want no mouse support and all the hot keys to be fully customizable and I want it to be lightning fast.
@arnobchowdhury9641
@arnobchowdhury9641 4 жыл бұрын
Thanks a lot Ben.
@ThangTran-hi3es
@ThangTran-hi3es 2 жыл бұрын
Nice vimer. Thank very much
@jpechacek80
@jpechacek80 28 күн бұрын
The navigation keys HJKL (H move left, L moves right) Ctrl - L moves cursor to window on the right , just like L moves the cursor to character on the right.
@xthebumpx
@xthebumpx 4 жыл бұрын
My setup: Coc-explorer instead of nerdtree Vim-Clap instead of Ctrlp (uses build-in fzy fuzzy matching and floating windows; no issues on Windows) Vista for a tagbar style sidebar with tags/methods from your file great vscode that have been ported to vim: Rigellute/shades-of-purple.vim (with bonus alacritty terminal colors) haishanh/night-owl.vim In addition to tomasiser/vim-code-dark that has already been mentioned several times there is also dunstontc/vim-vscode-theme written by the same person behind vscode's dark+ theme. In my opinion if you like vim keybindings the using (neo)vim with coc.nvim and extensions is a much better experience than using vscode and its vim emulation.
@carloscao9193
@carloscao9193 4 жыл бұрын
Oh man, how did you cast your keyboard input on the screen, I want that tool too~
@darkenblade986
@darkenblade986 3 жыл бұрын
try checking out the built in lsp that newer version of nvim are shipping with if you are after speed
@JuliusTanuwijaya
@JuliusTanuwijaya 4 жыл бұрын
thankyou for support it with vim shortcut subtitle
@garrafote18
@garrafote18 4 жыл бұрын
i think tmox thingy uses ctrl L and ctrl H to match vim L and H navigation keys
@ProgramWithErik
@ProgramWithErik 4 жыл бұрын
I use VIM in VSCode and I'm not sure why but the last few releases I'm getting weird slow down issues in VIM. It seems to get worse the longer VsCode is open. Sometimes it will take a second for each letter to show up when I'm working in a big file. I thought it was just me, but I saw on a Github issue that other people are having the same issue, and it looks like you are too. It makes me want to switch to your setup, but I guess there is no perfect solution. Also, I hear there is an emmett plugin for coc too that's nice.
@gbuwally6326
@gbuwally6326 4 жыл бұрын
same here. This is what got me on this video - been a vim user for decades and someone showed me VSCode and really loved the idea, so I dove in and experienced same thing as you. So I found this video and he's using the main things I need, too.
@yujinyuz
@yujinyuz 4 жыл бұрын
@@gbuwally6326 Me, too. I've been using Vim in VSCode for quite some time now but the latest update (1.12.2) made me want to switch to Vim or NeoVim. I even downgraded to 1.11.3 just so I could keep using Vim on VSCode
@ProgrammingwithPeter
@ProgrammingwithPeter 4 жыл бұрын
From my experience vim and emacs are powerful, but the experience we get from vscode or jetbrains IDE can't be the same unfortunately, but that's fine, we can get pretty close to it and still have the power of vim.
@94borat
@94borat 4 жыл бұрын
Programming with Peter But there are rally big issues when it comes to the performance. Also, there are other major problemy like for example i Can’t use any jetbrains ide in the work because all of our project are on servers and jetbrains requiers file locally.
@Ryu53898
@Ryu53898 4 жыл бұрын
Use sublime
@ProgrammingwithPeter
@ProgrammingwithPeter 4 жыл бұрын
@@Ryu53898 I started with sublime, trust me I tried avery major and even non major editors, just because changing editors seems fun for me, the most productive I am is with phpstorm followed by spacemacs(emacs), vim, sublime, vscode in this order. I prefer sublime over vscode because it's fast but the productivity it's not there.
@ProgrammingwithPeter
@ProgrammingwithPeter 4 жыл бұрын
@@94borat Hey man, sorry to say that but if you change files directly on server, you are doing something wrong, trust me, ask where you want. But to be related to what you said, you can connect phpstorm to a server to change the files. And, yes you need more RAM, but nowadays it's getting a standard for programmers to have 8GB+, i don't see a problem on that. Sublime and VSCode with all the plugins eat up to 1GB too. Php storm close to 2GB but the power and indexing is far better.
@Ryu53898
@Ryu53898 4 жыл бұрын
Programming with Peter he was speaking about performance. Sublime is a native app. PhpStorm run on java. Atom, vs code ... are electron app. If you want performance, use sublime
@viekoslavia
@viekoslavia 4 жыл бұрын
Make sure you are running the latest Node (coc.nvim loves that) and give Alacritty a try instead of iTerm2, I'm using a very similar config with large projects and no lag. Good luck!
@bawad
@bawad 4 жыл бұрын
this is the first time I've heard of Alacritty, it look sweet
@MrArrex
@MrArrex 4 жыл бұрын
@@bawad or look into Kitty
@viekoslavia
@viekoslavia 4 жыл бұрын
@@MrArrex Kitty is great! In my experience, Alacritty is better is you plan to use tmux.
@SimGunther
@SimGunther 4 жыл бұрын
A minimal terminal emulator on Vulkan with an OpenGL fallback would certainly be a big brained idea indeed.
@akankshc5707
@akankshc5707 3 жыл бұрын
Me: I wanna use vim as my main editor, I want to learn React.js and I wanna watch a Ben Awad video also me after watching this video: perfect video doesn't exi-
@MuhammadHanif-bx4pb
@MuhammadHanif-bx4pb 2 жыл бұрын
the only reason I use vim because it can run smoothly on my potato
@KevinGenus
@KevinGenus 4 жыл бұрын
Good stuff ... btw, Gruvbox is pronounced "Groove Box" ... 1970's disco baby!!
@JosueRodriguez08
@JosueRodriguez08 4 жыл бұрын
I have a bit of a problem, i just installed all of the pluins but when i use ctrl-N for NEDRTree it actually opens it twice. i need help setting that up
@rogerpenrose1368
@rogerpenrose1368 4 жыл бұрын
I am having the same problem.
@JackieCodes
@JackieCodes 4 жыл бұрын
I deleted all extra things that he put from nerdtree in init.vim except the plug installation and nmap :NERDTreeToggle let g:NERDTreeGitStatusWithFlags = 1 "let g:WebDevIconsUnicodeDecorateFolderNodes = 1 "let g:NERDTreeGitStatusNodeColorization = 1 "let g:NERDTreeColorMapCustom = { "\ "Staged" : "#0ee375", "\ "Modified" : "#d9bf91", "\ "Renamed" : "#51C9FC", "\ "Untracked" : "#FCE77C", "\ "Unmerged" : "#FC51E6", "\ "Dirty" : "#FFBD61", "\ "Clean" : "#87939A", "\ "Ignored" : "#808080" "\ } let g:NERDTreeIgnore = ['^node_modules$'] and it worked for me
@edpratt4550
@edpratt4550 4 жыл бұрын
Does anyone know the shortcut on mac for pulling up the function definition in a popup (or how to remap)? He says cmd + k in the video but that clears the buffer?
@Microphunktv-jb3kj
@Microphunktv-jb3kj 4 жыл бұрын
git fugitive and fzf seems like what your looking for :P
@viatrufka
@viatrufka 3 жыл бұрын
Next video: How to configure VSCode like Vim :D
@bugs389
@bugs389 3 жыл бұрын
Could be interesting, especially with the vscode-neovim extension
@StarzzDrak
@StarzzDrak 3 жыл бұрын
Step 1) Delete CSS files
@borjovsky3164
@borjovsky3164 3 жыл бұрын
Install the Vim plugin in VSCode. Done.
@nonadqs
@nonadqs 3 жыл бұрын
@@borjovsky3164 You can't make VSCode works like vim, vim has a real script language made to manipulate the editor, the vim extension works with only some vim keybindings, and the main reason, you can't use any vim plugin.
@nonadqs
@nonadqs 3 жыл бұрын
@Milan Actually you can install vim plugins using plugin mangers, so it's easy.
@ablanchi
@ablanchi 4 жыл бұрын
The tsserver is the exact same between VSCode and coc. And yeah, its a bit slow unfortunately :/
@qwarlockz8017
@qwarlockz8017 2 жыл бұрын
I actually saw someone else with this as well and left a message there. How are you doing the overlay popup windows? Is that a neovim thing? I have not seen that before. I just have seen split screens being used like tmux. Great video.
@azichen9289
@azichen9289 4 жыл бұрын
thank you share this, help me a lot ~
@tonynguyen725
@tonynguyen725 4 жыл бұрын
you should add set termguicolors in your ~/.vimrc to make gruvbox have true colors(makes it look better in my opinion)
@bawad
@bawad 4 жыл бұрын
I'll give that a try, thanks
@BrandonClapp
@BrandonClapp 2 жыл бұрын
I think you're right that it has something to do with coc. I installed that over ycm and it seems to be slow when I close buffers now.
@stevepond14
@stevepond14 2 жыл бұрын
You can bind actual mouse hover to show floating docs, which will make it even more VSCode-like
@someonehere4380
@someonehere4380 2 жыл бұрын
defeats the entire point of using vim
@plankalkulcompiler9468
@plankalkulcompiler9468 4 жыл бұрын
God, you type like a god.
@askcodebase
@askcodebase 4 жыл бұрын
Great tutorial. Thanks for sharing! BTW, which font do you use for the vim/terminal?
@gabeclark8050
@gabeclark8050 4 жыл бұрын
Gruvbox
@1e1001
@1e1001 3 жыл бұрын
@@gabeclark8050 that's a theme plugin
@gabeclark8050
@gabeclark8050 3 жыл бұрын
@@1e1001 oh you're right. The font is not gruvbox
@NN-sp9tu
@NN-sp9tu 2 жыл бұрын
He already said firacode in the video
@egehurturk6209
@egehurturk6209 3 жыл бұрын
Hey, could you please share the Notion doc you took notes on? Thanks in advance.
@jiggartala2008
@jiggartala2008 3 жыл бұрын
Do you have cursor hover with COC? I mean when your cursor is inside a function parenthesis and you want to know what arguments you can provide. Is there any shortcut for that with COC? for example with Intellij I can do that with help of command+p (OSX). I'm looking for an equivalent short-key with COC
@mostafagamal2748
@mostafagamal2748 3 жыл бұрын
5:49 To show definitions in linux press shift+k
@algumrandomai5516
@algumrandomai5516 3 жыл бұрын
As I know shift+k will show documentations (`man` documentation and vim-help, like C built-in functions or vim options, it doesn't work with golang for example), you'll need some plugin for a "go to definition" functionallity
@barungh
@barungh 4 жыл бұрын
It's very nice to see that top notch developer like you ... Believing the power of Vim 👏
@abnormi101
@abnormi101 4 жыл бұрын
Is anybody using EMACS anymore? Or is this battle won :P
@barungh
@barungh 4 жыл бұрын
@@abnormi101 I never got to know , how does it look 🤗
@zeocamo
@zeocamo 4 жыл бұрын
@@abnormi101 that will always be crazy people... So yea
@yujinyuz
@yujinyuz 4 жыл бұрын
@@abnormi101 TechLead is using emacs. LOL
@stfalx
@stfalx 3 жыл бұрын
This video was just recommended to me. I use VS code but that's besides the point. Damn dude, your eyes look like you stayed up late 2 nights in a row to search for ways to make fun of angular!
@kelvinmuliawan6391
@kelvinmuliawan6391 4 жыл бұрын
Do you know how to use "Enter" to select the suggestion from coc.nvim without entering a new line? I appreciate if you can help me ..
@renozyx4634
@renozyx4634 3 жыл бұрын
First of all, I wanted to say that your video is great, an impressive quality, then I have a question: I'd like to switch from vscode to vim but what I don't know is how to have in vim the equivalent of VSCode "Open Editors" view and use it to switch between buffers (opened file), is there someone who knows how to do such thing? Thanks!
@TechJolt3d
@TechJolt3d 2 жыл бұрын
A year late but mapping tab to :bnext is what I usually use. Its not like Open editors but makes switching buffers easier.
@nguyenkhai2094
@nguyenkhai2094 4 жыл бұрын
Hello what is the name of software that you used for tracking keyboard?
@colabvan5551
@colabvan5551 4 жыл бұрын
Agree. I've had an angular project. i try it on vim, but it was super lag, sometimes suspended. I have to use vscode instead.
@alimeresvargas8002
@alimeresvargas8002 2 жыл бұрын
looks great! I have a question how can I set up the set number in order to always the zero follows the cursor? Regards
@jiyometrik
@jiyometrik 2 жыл бұрын
Add “set rnu” into your .vimrc.
@fabiomarkmitt7695
@fabiomarkmitt7695 3 жыл бұрын
You can try onivim 2, it's vs code with native VIM
@somebodyoncetoldme1704
@somebodyoncetoldme1704 2 жыл бұрын
Do you talk about :set include variable at some point? if so, where? I'm trying to configure vim to be able to search through a systemverilog project.
@phil-l
@phil-l 4 жыл бұрын
I have the same problem with large TS project, if you ever why or how to improve things.. let us know!
Vim Tutorial
1:04:45
Ben Awad
Рет қаралды 564 М.
Neovim is Better
27:56
Chris Titus Tech
Рет қаралды 114 М.
Inside Out Babies (Inside Out Animation)
00:21
FASH
Рет қаралды 19 МЛН
ВОДА В СОЛО
00:20
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 31 МЛН
50 YouTubers Fight For $1,000,000
41:27
MrBeast
Рет қаралды 209 МЛН
Vim As Your Editor - Introduction
12:24
ThePrimeagen
Рет қаралды 851 М.
Why I Cant Stand IDE's After Using VIM | Prime Reacts
17:51
ThePrimeTime
Рет қаралды 284 М.
Vim vs NeoVim, What's the Difference?  Which Should You Use?
10:29
Mental Outlaw
Рет қаралды 316 М.
Turn VIM into a full featured IDE with only one command
11:55
Dreams of Code
Рет қаралды 642 М.
Mastering the Vim Language
36:20
thoughtbot
Рет қаралды 608 М.
Making Tmux Better AND Beautiful -- here’s how
10:56
typecraft
Рет қаралды 69 М.
Vim: Vim as an IDE (VimConf 2020 Talk)
1:06:30
Leeren
Рет қаралды 116 М.
Neovim in 100 Seconds
2:11
Fireship
Рет қаралды 727 М.
Vim notetaking tips
17:20
nixcasts
Рет қаралды 178 М.
Хакер взломал компьютер с USB кабеля. Кевин Митник.
0:58
Последний Оплот Безопасности
Рет қаралды 2 МЛН
تجربة أغرب توصيلة شحن ضد القطع تماما
0:56
صدام العزي
Рет қаралды 63 МЛН
Rate This Smartphone Cooler Set-up ⭐
0:10
Shakeuptech
Рет қаралды 6 МЛН