VSCode to LunarVim

Поделиться
HTML-код
  • Опубликовано: 20 июл 2024
  • Leave a comment if there's a neat trick that I left out!
    Twitter: / kapicode
    Github: github.com/christopher-kapic
    Blog: christopherkapic.com
    Dev.to: dev.to/christopherkapic
    Medium: / christopherkapic
  • НаукаНаука

Комментарии • 50

  • @CTBell-uy7ri
    @CTBell-uy7ri Год назад +9

    This is exactly what I’ve been searching for. I love the bum plug-in for vscode, but I want to move to the full native vim experience. This made it accessible

  • @starllama2149
    @starllama2149 Год назад +8

    It’s funny, I’ve been using vim for 5+ years now. I have my own configuration and it’s really cool seeing people want to try out vim. Personally, I can’t actually switch back because I am so used to my own configuration anything else feels unnatural, the same applies for lunarvim. In my opinion you can get a more lightweight and faster felling experience by building your own vim configuration, but something like lunarvim is a great way to start.

  • @anagh4802
    @anagh4802 10 дней назад

    Great video! I am currently on a similar journey as yours, started of with the vscode vim extension. Started using vim motions. Now trying to switch to neovim.

  • @caarlos0
    @caarlos0 Год назад +12

    to search/replace on all files, search and add them to the quickfixlist (ctrl+q in the live grep telescope windows), and then use `cfdo %s/a/b/g`, and finally `:wall` to save all changes :)

  • @90vasilis
    @90vasilis Год назад +6

    Nice video. For the search and replace feature I believe that you can achive it with lsp. There is a rename functionality that can be trigger usually with "gr" unless LunarVim has remap it. It doesn't work like vscode's but in most case I think it can do the trick and im 100% sure that LunarVim has the functionality since it uses lspconfig. You may want to check under the +lsp menu I believe l is for lsp.

    • @itsSujeetMahto
      @itsSujeetMahto Год назад +1

      I did use lunarVim a year ago, back then, rename was placed at lr , now with the introduction of plugins like Mason that auto configures your LSP, it's very easy to setup neovim from scratch

  • @KapicMedia
    @KapicMedia Год назад +13

    You are nutz. Stache looks amazing.

  • @JustBenUK
    @JustBenUK Год назад +11

    Instead of using tmux, you can create more terminal buffers.. so to open the terminal you use CTL + \ if you use 1 to 9 first you can get more, so 1+CTL+/ will open a new terminal in lunar vim

    • @vitchuu
      @vitchuu Год назад +4

      I had no idea that was a thing, that's sick!

    • @SirJagerYT
      @SirJagerYT Год назад +4

      tmux is not just for spliting windows, making new terminals, tmux can hold and save current session even after closing the terminal which leads faster loading and multiple workspaces at same time

  • @irlshrek
    @irlshrek Год назад +3

    i think its easier to move between tabs with Shift+H/L rather than Space+b+n/p

  • @celsopatiri2846
    @celsopatiri2846 Год назад +1

    7:58 just as a recommendation, i love the nvim-pack/nvim-spectre plugin for search and replace functionality

  • @jonbikaku6133
    @jonbikaku6133 Год назад +2

    I always switch back to GUI because things seem.. faster. Text search is 'Ctrl+Shift+f' instead of 'Space, f, t' and you can easily exclude files. Opening file is 'Ctrl+Shift+p' instead of 'Space, ...'. I guess I could get these in nvim but I dont want to dive the rabbit hole 😅

  • @Nitiiii11
    @Nitiiii11 4 месяца назад

    I love lunarvim because it helped me get productive with neovim very quickly when I didn't know much about it in the beginning. I then built my config on top of it, which worked very well I must say. Imho it's perfect for neovim beginners who want to get things going fast, and learn it while using it, as opposed to spending so much time upfront configuring it.

  • @orbital1337
    @orbital1337 Год назад +2

    I think lunarvim uses toggleterm. Toggleterm natively already supports multiple terminals, so you don't need to run tmux in the terminal. Just type any number before the terminal keybind to go to that terminal. So 1 goes to the first terminal, 2 goes to the second terminal etc. Super useful!

    • @mbrav
      @mbrav Год назад

      I end up using tmux because I cannot figure out how to scroll up with PGUP in a pop up terminal. Any idea?

    • @orbital1337
      @orbital1337 Год назад +1

      @@mbrav Ah yes, binding something for terminal mode can be a bit tricky because the terminal by default captures almost every key. Try rebinding to and it should work (note you'll probably have to escape as in the string). I think for lvim specifically, you'd have to set lvim.keys.terminal_mode[""] = "".

    • @mbrav
      @mbrav Год назад

      @@orbital1337 Nevermind, a simple J and K did the job, can't believe its just a regular vim motion 🤦‍♂

  • @smit17xp
    @smit17xp Год назад

    there is neovim plugin for vsocde which I've been using instead of VSCodeVim extension. Power of both worlds

  • @marco_gorelli
    @marco_gorelli Месяц назад

    FINALLY, a no-nonsense tutorial showing you what you actually need
    legend, mate
    I too am tired of the vim keybindings in vscode, they're just too flaky

  • @pali122
    @pali122 Год назад +1

    have you had issues with syntax highlight on big files vs vscode I have tried many times to switch to vim, but the performance on large files always kills it for me. Also making a debugger works seems to be a pain in the ass in any config

  • @PaulSebastianM
    @PaulSebastianM 6 месяцев назад

    Ctrl-W W also works to switch from window to window, which also works when you want to move from the file explorer back to your file. I didn't know that Ctrl-L also worked.

  • @lian1238
    @lian1238 Год назад

    I’ve been using nvim for about a month. Although it isn’t easy to set up, especially on windows, i got it working. And i even have a repo where i keep my config folder. When I’m on the go, i take my MacBook and so i clone my repo and got the same set up there as well. I often find myself missing functionality from vscode (like rename, search replace, etc) and would have to go looking for answers. I don’t mind it, it’s fun actually.
    BUT, now I have found a problem with seemingly no solution in sight. I’m writing a project in SvelteKit and need to have parentheses in a dir name. On windows, all the files within that folder show up blank. I googled this and found a few answers saying this is a problem with vim on windows. If anyone has an answer, plz let me know. I really want to love nvim but these edge cases are becoming deal breakers.

  • @alanibarra1411
    @alanibarra1411 Год назад

    Hey man cool video is awesome Lunarvim :D a good alternative to vscode or like a IDE/editor code secondary. Can you share your lunarvim config ? , regards!

  • @DamianKleiman
    @DamianKleiman Год назад +1

    Nice video, I've been using NeoVim for a while. But I do not use LunarVim, I've set it up all myself, so I could configure key mappings and I have the plugins I wanted. It's a pain to set it up completely, but at the end you have a very custom setup. LunarVim is great to start if you want a neovim setup fast, but you don't know what it has under the hood.

    • @knowledgedose1956
      @knowledgedose1956 Год назад

      You can see what's under the hood, install plugins you want or customise the way you want it.

  • @NostraDavid2
    @NostraDavid2 Год назад +5

    My reason for sticking with vscode is because vscode has the ability of a workspace, which is severely lacking in Neovim, IMO
    Though I can recommend WezTerm, if you prefer the native ability to split up your window, without using tmux, and use tabs, if you so prefer. Also because Alacritty adds extra lines when I paste a block of text :(

    • @robertluong3024
      @robertluong3024 Год назад

      What are workspaces used for?

    • @kyonas6047
      @kyonas6047 Год назад

      @@robertluong3024 for example if I am a c devolopers and i do front end Javascript as a hobby i can have 2 workspaces one for rust the other for Js and i can make a new project set the workspace to the work i will be doing and the keyboard binding or settings and activated and disabled extentions will be saved in a json file

  • @PetarVukmanovic
    @PetarVukmanovic Месяц назад

    Thanks! I'm in the same spot, kinda wanna switch, but kinda don't think it would be easy. xD

  • @mariusandersons
    @mariusandersons Год назад

    why not just use emacs with evil binding?

  • @ghosthaunting15
    @ghosthaunting15 Год назад

    It's better to use neovim and build your own requirements for an ide than using some other prebuild ide like lunar vim. Leader key slows your workflow when using lunar vim.i have configured the leader key for telescope only.

    • @lel7531
      @lel7531 Год назад +2

      It's a good starting point to get your feet wet

    • @robertluong3024
      @robertluong3024 Год назад +1

      I spent a month building my own neovim stuff, nah, I'll go with lunarvim and maybe go on top of that
      I remember when a plugin or something got updated and had to figure that out or when I couldn't get Rust LSP working
      I'm already needing to get work done, I don't need work on top of it

  • @SirJagerYT
    @SirJagerYT Год назад +1

    alacritty (or kitty) + tmux (with tmuxifier) + neovim (with any flavour Lunar, NvChad ...) combinaton is far far greater than vscode

    • @christopherkapic
      @christopherkapic  Год назад

      Tbh I see the value in both. I often switch back and forth for various things.

  • @tabeareed4338
    @tabeareed4338 Год назад +1

    Next: M to F

  • @japhethjay4880
    @japhethjay4880 8 месяцев назад

    I just like u, will mostly code inside lunarvim, then I have vscode for somethings I can't do in lunarvim yet or have not had the time to find how they work, then I use intellij idea for git hihihihih.

  • @livb4139
    @livb4139 Год назад +1

    ru still using lunarvim or went back to vscode

  • @debasishraychawdhuri
    @debasishraychawdhuri Год назад +2

    using vim is not hard, i have used it for a long time for text editing. setting up vim to work as an ide is hard. you have to edit 500 different configurations to get it to work. this cannot work. It needs to be one command that setup everything for your language.

  • @statuschannel8572
    @statuschannel8572 Год назад

    try space + s + t for a live grep search

  • @cebuanoninoy
    @cebuanoninoy Год назад +1

    Take my money 😊

  • @DarrylHebbes
    @DarrylHebbes 9 месяцев назад

    I am like you.

  • @dave4347
    @dave4347 Год назад

    Jumping from vscode straight into a prebuilt config is not the best way to learn vim. It’s going to come with a lot of bloat you don’t need and won’t fully understand because you didn’t put it together. I would highly suggest rolling with your own configs and pulling from various places. You’re going to know exactly how it works and it will be tailored to your own workflows.

    • @lian1238
      @lian1238 Год назад +1

      Totally agree. On my first day of nvim, i installed nvimchad and totally regretted it. I did not understand anything. I reverted to building my own config from other creators. (The name is theprimeagen). After a month now, i might try lvim or nvimchad or astrovim

  • @lel7531
    @lel7531 Год назад +2

    Why lunar vim compared to the other options ? And please stop looking at your keyboard to type on the keys it's killing your speed and flow.

    • @macmanuelodumeru3708
      @macmanuelodumeru3708 Год назад

      What other options would you have preferred? Curious as I'm new to this stuff

    • @NathanHedglin
      @NathanHedglin Год назад

      ​@@macmanuelodumeru3708 neovim

  • @AugustoGuerrero__Main__
    @AugustoGuerrero__Main__ Год назад

    :%s/1string/2string/g would search and replace each occurrence of 1string to 2string in normal vim