Buffers, Windows, Tabs in Neovim

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

Andrew Courter

Andrew Courter

Күн бұрын

Пікірлер: 41
@ascourter
@ascourter Жыл бұрын
Do you have any tips or tricks you use for opening or manipulating buffers, windows, tabs?
@licokr
@licokr 5 ай бұрын
I'm a noob for neovim. This is exactly what I was looking for. Thanks man 👍
@ascourter
@ascourter 5 ай бұрын
Thank you! Glad it helped and let me know if there are other topics you're interested in.
@Drezaem55
@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
@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.
@TheStickofWar
@TheStickofWar 5 ай бұрын
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.
@ascourter
@ascourter 5 ай бұрын
Thanks for sharing this!
@recker624
@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
@ascourter Ай бұрын
@@recker624 thanks for the kind words! I'm glad I was able to help
@BlaximusIV
@BlaximusIV 4 ай бұрын
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
@ascourter
@ascourter 4 ай бұрын
Thanks for calling that out. That's definitely a custom keymap like you mentioned.
@ДенисКвочка
@ДенисКвочка 3 ай бұрын
Я минут пять не мог понять как открыть файл. Потом решил посмотреть комментарии и благодаря тебе смог открыть файл/ Спасибо! Для тех, кто в затруднении нужно выполнить
@elw8058
@elw8058 Жыл бұрын
The local arglist is a really under rated feature of Vim. Perhaps you can explain how it's independent in tabs,splits.
@elw8058
@elw8058 Жыл бұрын
and how it differs from buffers
@ascourter
@ascourter Жыл бұрын
That's a great suggestion! I'll add that to my list to go over. Thanks!
@hungrycode
@hungrycode 8 ай бұрын
this is so helpful thank you
@ascourter
@ascourter 8 ай бұрын
Thanks for watching!
@GSon-bj7mp
@GSon-bj7mp 9 ай бұрын
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
@ascourter
@ascourter 9 ай бұрын
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-bj7mp
@GSon-bj7mp 9 ай бұрын
lol, i c. thank you!@@ascourter
@Евгений-щ3ж7ч
@Евгений-щ3ж7ч 5 ай бұрын
Andrew Courter thank you from Russia о7 👏
@simplyblunder
@simplyblunder 8 ай бұрын
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??
@simplyblunder
@simplyblunder 8 ай бұрын
or is it just sort of easier to use ":sb" for this sort of thing?
@ascourter
@ascourter 8 ай бұрын
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
@simplyblunder
@simplyblunder 8 ай бұрын
@@ascourter awesome, cheers for the reply I’ll check it out!
@rbereziuk
@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
@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!
@LuRybz
@LuRybz 5 ай бұрын
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?
@ascourter
@ascourter 5 ай бұрын
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
@michalroesler
@michalroesler 9 ай бұрын
You're using this this key combination " ff" a lot. Can you please explain what it's doing if a few simple words??
@ascourter
@ascourter 9 ай бұрын
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
@yash1152
@yash1152 5 ай бұрын
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.
@ascourter
@ascourter 5 ай бұрын
Using :buffers should be the built in way to list the open buffers
@michalroesler
@michalroesler 9 ай бұрын
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??
@ascourter
@ascourter 9 ай бұрын
Glad my explanation was helpful!
@ragnadrok7
@ragnadrok7 5 ай бұрын
How to configure telescope to open a new tab everytime?
@ascourter
@ascourter 5 ай бұрын
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
@ragnadrok7
@ragnadrok7 5 ай бұрын
I got the desired behavior with bufferline and setting mode=“buffers” Now when any new buffer is shown as tab
@ascourter
@ascourter 5 ай бұрын
@@ragnadrok7 ah ok. That's a little different than opening each in a tab but I'm glad that got the behavior you wanted!
@ripndipp
@ripndipp 3 ай бұрын
This is my 3rd time trying to divorce myself to BSCode
@ascourter
@ascourter 3 ай бұрын
Good luck! What have you run into in the past that prevented the switch?
Custom Colors in Neovim
5:51
Andrew Courter
Рет қаралды 7 М.
Turn VIM into a full featured IDE with only one command
11:55
Dreams of Code
Рет қаралды 670 М.
Apple peeling hack @scottsreality
00:37
_vector_
Рет қаралды 130 МЛН
Cute
00:16
Oyuncak Avı
Рет қаралды 12 МЛН
POV: Your kids ask to play the claw machine
00:20
Hungry FAM
Рет қаралды 19 МЛН
Vim Motions for absolute beginners!!!
7:25
Dispatch
Рет қаралды 190 М.
My Neovim configuration in 2024
20:48
Andrew Courter
Рет қаралды 4,9 М.
Why I Cant Stand IDE's After Using VIM | Prime Reacts
17:51
ThePrimeTime
Рет қаралды 311 М.
Advanced Multiline Editing in Neovim
14:09
Andrew Courter
Рет қаралды 14 М.
Neovim - Bufferline Buffers vs Tabs vs Windows Explanation
13:56
chris@machine
Рет қаралды 52 М.
I ranked EVERY terminal emulator. It was nuts
20:35
typecraft
Рет қаралды 84 М.
VIM isn't about speed
40:00
ThePrimeTime
Рет қаралды 183 М.
Why Vim Experts Do THIS Instead of Using Tabs...
7:55
DevOps Toolbox
Рет қаралды 138 М.
30 Vim commands you NEED TO KNOW (in just 10 minutes)
10:27
typecraft
Рет қаралды 97 М.
Multiline Editing in Neovim
4:25
Andrew Courter
Рет қаралды 22 М.
Apple peeling hack @scottsreality
00:37
_vector_
Рет қаралды 130 МЛН