Do you have any tips or tricks you use for opening or manipulating buffers, windows, tabs?
@licokr5 ай бұрын
I'm a noob for neovim. This is exactly what I was looking for. Thanks man 👍
@ascourter5 ай бұрын
Thank you! Glad it helped and let me know if there are other topics you're interested in.
@Drezaem55 Жыл бұрын
This was exactly what I needed next in my vim journey. I can reasonably fluently move within a file, and this teaches how to move through a project which was the next step I needed to take. Thank you very much!
@ascourter Жыл бұрын
You're very welcome! Glad I was able to help. You might also check out my video on NetRW too. There's some good overlap between these concepts and using NetRW.
@TheStickofWar5 ай бұрын
When Andrew resizes the window with his keybinding (ctrl+w -> arrow key), You can actually enter ctrl+w -> any number -> arrow key and you will repeat this. It's the equivalent to the cols and rows of your terminal, so if you want 5 columns (synonymous with characters) or 5 rows (synonymous with line height), then you can do that. Of course you can map some shortcut to spam it if you prefer.
@ascourter5 ай бұрын
Thanks for sharing this!
@recker624Ай бұрын
Thanks man really appreciate the nice tutorial. I recently made the switch from VS code and was struggling to understand how buffer, windows and tabs were related. You really helped me out.
@ascourterАй бұрын
@@recker624 thanks for the kind words! I'm glad I was able to help
@BlaximusIV4 ай бұрын
Awesome, this was just what I was looking for! Very helpful. It might be helpful to note that at 0:55, pv that's used is a custom mapping for the 'Ex' command. e.g. ':Ex' or vim.cmd.Ex
@ascourter4 ай бұрын
Thanks for calling that out. That's definitely a custom keymap like you mentioned.
@ДенисКвочка3 ай бұрын
Я минут пять не мог понять как открыть файл. Потом решил посмотреть комментарии и благодаря тебе смог открыть файл/ Спасибо! Для тех, кто в затруднении нужно выполнить
@elw8058 Жыл бұрын
The local arglist is a really under rated feature of Vim. Perhaps you can explain how it's independent in tabs,splits.
@elw8058 Жыл бұрын
and how it differs from buffers
@ascourter Жыл бұрын
That's a great suggestion! I'll add that to my list to go over. Thanks!
@hungrycode8 ай бұрын
this is so helpful thank you
@ascourter8 ай бұрын
Thanks for watching!
@GSon-bj7mp9 ай бұрын
what is that 'column' that is highlighted on the right side of your screen? i have that same thing, and drives me nuts... do you know how to get rid of it? or at least why it appears there? thanks in advance
@ascourter9 ай бұрын
Haha I have debated turning this off as well. I believe this is "colorcolumn". Try setting vim.opt.colorcolumn = "" in your init.lua to disable it.
@GSon-bj7mp9 ай бұрын
lol, i c. thank you!@@ascourter
@Евгений-щ3ж7ч5 ай бұрын
Andrew Courter thank you from Russia о7 👏
@simplyblunder8 ай бұрын
Great video! one thing I was wondering that while it's nice to be able to send a split to a new tab like you showed at the end, is it possible to then send this tab back into a split??
@simplyblunder8 ай бұрын
or is it just sort of easier to use ":sb" for this sort of thing?
@ascourter8 ай бұрын
Great question, I don't think there's a built in way to move a window back into an existing tab from what I've researched. I did find this link with a custom function for vim: vim.fandom.com/wiki/Move_current_window_between_tabs
@simplyblunder8 ай бұрын
@@ascourter awesome, cheers for the reply I’ll check it out!
@rbereziuk Жыл бұрын
Great video, thanks. Not vim question, why do you use useMemo for simple object literal? Using hooks is not free, and for simple object, it could have the opposite effect to app performance
@ascourter Жыл бұрын
Thanks! If I remember correctly I needed it to do a deep comparison or copy to get it to work. Definitely performance implications like you mentioned so I should go back and double check this is still necessary. Thanks for the question!
@LuRybz5 ай бұрын
Hey, I am a game developer (Unity) and I am passionate about Vim but the tutorials that I`ve found dont mention about debugging. I cant debug Unity C# code in Vim :( do you have any idea how to solve it?
@ascourter5 ай бұрын
It's on my list to create a C# video. I haven't done much C# but I should be able to show how to get debugging and tests running
@michalroesler9 ай бұрын
You're using this this key combination " ff" a lot. Can you please explain what it's doing if a few simple words??
@ascourter9 ай бұрын
Of course! This runs:Telescope find_files. Here's a link to my keymaps for Telescope: github.com/exosyphon/nvim/blob/main/after/plugin/telescope.lua
@yash11525 ай бұрын
1:35 equivalent to _[i list opened buffers using telescope]_ i'll have to search for the way to do it natively in nvim. as i am not into any plugins for the time being.
@ascourter5 ай бұрын
Using :buffers should be the built in way to list the open buffers
@michalroesler9 ай бұрын
It's great you have Return YouTub Dislike button installed. It shows you're the legit content creator. I was a little disappointment, because you have a little to much of those plugins installed, so your key combinations are a little bit different then plain vanilla Vim. But thanks for the explanation, regarding Buffers, Windows and Tabs. That's quite a lot features for a single text editor, but one needs to learn and understand the world we live in. Doesn't he??
@ascourter9 ай бұрын
Glad my explanation was helpful!
@ragnadrok75 ай бұрын
How to configure telescope to open a new tab everytime?
@ascourter5 ай бұрын
Unless you have overridden the default mappings, Ctrl+t should open a file in a new tab. You can override the mappings if you want it to be in a tab but the default of using buffers is more vim-like. github.com/nvim-telescope/telescope.nvim/tree/master?tab=readme-ov-file#default-mappings
@ragnadrok75 ай бұрын
I got the desired behavior with bufferline and setting mode=“buffers” Now when any new buffer is shown as tab
@ascourter5 ай бұрын
@@ragnadrok7 ah ok. That's a little different than opening each in a tab but I'm glad that got the behavior you wanted!
@ripndipp3 ай бұрын
This is my 3rd time trying to divorce myself to BSCode
@ascourter3 ай бұрын
Good luck! What have you run into in the past that prevented the switch?