Buffers, Windows, Tabs in Neovim

  Рет қаралды 19,479

Andrew Courter

Andrew Courter

Күн бұрын

In this video I walk through the building blocks of Neovim and Vim for viewing and editing files. Buffers, Windows and Tabs allow you to manipulate your editor and customize it to your needs.
Join this channel to get access to perks:
www.youtube.com/@ascourter/join
Twitter: / exosyphon
Website: andrewcourter.com
Twitch: / exosyphon
Gear:
Mic: amzn.to/40GUGFg
Mic Interface: amzn.to/3YGxaGE
Mic preamp: amzn.to/3XtBXtY
Webcam: amzn.to/3OEOZRU
Boom Arm: amzn.to/3qLr0GE
Vissles (VS II switches): vissles.com/?ref=69zn8aei20 - Coupon Code for $5 off: ANDREWCOURTER
IQUNIX F97 (TTC ACE switches): iqunix.store/collections/f97-...
0:00 Intro
0:32 Buffers
1:47 Windows
4:15 Tabs
6:11 Outro
#neovim #coding #programming

Пікірлер: 39
@ascourter
@ascourter Жыл бұрын
Do you have any tips or tricks you use for opening or manipulating buffers, windows, tabs?
@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.
@licokr
@licokr 3 ай бұрын
I'm a noob for neovim. This is exactly what I was looking for. Thanks man 👍
@ascourter
@ascourter 3 ай бұрын
Thank you! Glad it helped and let me know if there are other topics you're interested in.
@TheStickofWar
@TheStickofWar 3 ай бұрын
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 3 ай бұрын
Thanks for sharing this!
@hungrycode
@hungrycode 7 ай бұрын
this is so helpful thank you
@ascourter
@ascourter 7 ай бұрын
Thanks for watching!
@BlaximusIV
@BlaximusIV 2 ай бұрын
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 2 ай бұрын
Thanks for calling that out. That's definitely a custom keymap like you mentioned.
@user-ew6mz8kz8v
@user-ew6mz8kz8v Ай бұрын
Я минут пять не мог понять как открыть файл. Потом решил посмотреть комментарии и благодаря тебе смог открыть файл/ Спасибо! Для тех, кто в затруднении нужно выполнить
@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!
@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!
@simplyblunder
@simplyblunder 6 ай бұрын
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 6 ай бұрын
or is it just sort of easier to use ":sb" for this sort of thing?
@ascourter
@ascourter 6 ай бұрын
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 6 ай бұрын
@@ascourter awesome, cheers for the reply I’ll check it out!
@GSon-bj7mp
@GSon-bj7mp 7 ай бұрын
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 7 ай бұрын
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 7 ай бұрын
lol, i c. thank you!@@ascourter
@user-go3rb6rs2l
@user-go3rb6rs2l 4 ай бұрын
Andrew Courter thank you from Russia о7 👏
@yash1152
@yash1152 3 ай бұрын
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 3 ай бұрын
Using :buffers should be the built in way to list the open buffers
@LuRybz
@LuRybz 3 ай бұрын
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 3 ай бұрын
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
@AdharshMk96
@AdharshMk96 3 ай бұрын
How to configure telescope to open a new tab everytime?
@ascourter
@ascourter 3 ай бұрын
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
@AdharshMk96
@AdharshMk96 3 ай бұрын
I got the desired behavior with bufferline and setting mode=“buffers” Now when any new buffer is shown as tab
@ascourter
@ascourter 3 ай бұрын
@@AdharshMk96 ah ok. That's a little different than opening each in a tab but I'm glad that got the behavior you wanted!
@michalroesler
@michalroesler 7 ай бұрын
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 7 ай бұрын
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
@michalroesler
@michalroesler 7 ай бұрын
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 7 ай бұрын
Glad my explanation was helpful!
@ripndipp
@ripndipp Ай бұрын
This is my 3rd time trying to divorce myself to BSCode
@ascourter
@ascourter Ай бұрын
Good luck! What have you run into in the past that prevented the switch?
Custom Colors in Neovim
5:51
Andrew Courter
Рет қаралды 6 М.
Neovim - Bufferline Buffers vs Tabs vs Windows Explanation
13:56
chris@machine
Рет қаралды 52 М.
Mom's Unique Approach to Teaching Kids Hygiene #shorts
00:16
Fabiosa Stories
Рет қаралды 34 МЛН
Женская драка в Кызылорде
00:53
AIRAN
Рет қаралды 500 М.
БАБУШКИН КОМПОТ В СОЛО
00:23
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 17 МЛН
Playing hide and seek with my dog 🐶
00:25
Zach King
Рет қаралды 35 МЛН
Code Folding in Neovim
11:22
Andrew Courter
Рет қаралды 15 М.
Why Neovim nerds are so obsessed with the terminal
6:44
Joshua Morony
Рет қаралды 82 М.
Vim macros vs. VSCode shortcuts/multi-cursor
5:13
Pooria JR
Рет қаралды 718
Become A Neovim Kangaroo
6:54
Code to the Moon
Рет қаралды 56 М.
SPEED UP your Vim navigation skills!
7:15
DevOps Toolbox
Рет қаралды 39 М.
10 Advanced Vim Features (You Probably Didn't Know)
21:47
Sebastian Daschner
Рет қаралды 69 М.
Ultimate Quickfix List Guide
10:15
Andrew Courter
Рет қаралды 19 М.
Is Hop.nvim better than Flash.nvim?
16:04
Andrew Courter
Рет қаралды 5 М.
How to ACTUALLY switch from VS Code to Neovim
5:09
Joshua Morony
Рет қаралды 199 М.
Which is Better Flash.nvim OR Leap.nvim?
11:35
Andrew Courter
Рет қаралды 9 М.
Better Than Smart Phones☠️🤯 | #trollface
0:11
Not Sanu Moments
Рет қаралды 15 МЛН
НЕ БЕРУ APPLE VISION PRO!
0:37
ТЕСЛЕР
Рет қаралды 375 М.