Neovim - Bufferline Buffers vs Tabs vs Windows Explanation

  Рет қаралды 51,703

chris@machine

chris@machine

2 жыл бұрын

SUPPORT THE CHANNEL
💳 Patreon: / chrisatmachine
💰 Paypal: paypal.me/chrisatmachine
👕 Merch: shop.spreadshirt.com/chrisatm...
SOCIAL MEDIA
🕸️ Website: www.chrisatmachine.com
🐦 Twitter: / chrisatmachine
💻 Github: github.com/ChristianChiarulli
📺 Odysee: odysee.com/$/invite/@chrisatm...
💬 Matrix: matrix.to/#/+atmachine:matrix...
📡 Twitch: / chrisatmachine
🔌 Discord: / discord
GET INTO CRYPTO AND SUPPORT THE CHANNEL
🏦 Blockfi: blockfi.com/?ref=732f6bc1
💰 Celcius: celsiusnetwork.app.link/12138...
🪙 Coinbase: www.coinbase.com/join/chiaru_ij
💱 BinanceUS: accounts.binance.us/en/regist...
💸 Voyager: voyager.onelink.me/WNly/refer...
📈 OKCoin: www.okcoin.com/join?channelId...
₿ DONATE CRYPTO
Bitcoin: bc1qlw9t04evwvvlgkwkxf3cm9mfk6zgmy09sp4uja
Ethereum: 0x31202eF4Ce3d03c1B5111Bc388f937e7b17dd164
Litecoin: ltc1qmhxvmr9h3hpc226aeqj9sadwjn3gl0nh5qsvkf
Polkadot: 12pxctmVV3HBKqfpnPbgqznKHdpFbihVENH2VJU6Z5HsaD1S
Chainlink: 0x31202eF4Ce3d03c1B5111Bc388f937e7b17dd164
Bitcoin Cash: qqz56dl270wx04z4x8y42aft39ptpksjuggmel0hz6
XRP: raUaxdWMst1Eb96nACTvJTRWgtmsRQpwHk
Stellar: GD7PCULOCC4DLRJN6TJSWFTETDWL4D6URHXEBFX4B4RJQN4B5T7XZ5AU

Пікірлер: 41
@MrBlack-cv8qn
@MrBlack-cv8qn Жыл бұрын
Thank you soooo much for your work on these amazing videos
@arnoldwolfstein
@arnoldwolfstein 2 жыл бұрын
I've been using nvim +5 years and this is the best video about buffers vs windows vs tabs
@akim5227
@akim5227 2 жыл бұрын
Ayyy, my favorite series is continuing :)
@thenaman047
@thenaman047 20 күн бұрын
Finally understood, buffers, windows and tabs. Thanks for making this!
@rubempacelli6815
@rubempacelli6815 2 жыл бұрын
Thank you again!
@mlyxshi
@mlyxshi 2 жыл бұрын
Very helpful!
@farzadmf
@farzadmf 2 жыл бұрын
Is it possible to show "active" buffers per tab? Meaning: when we switch tabs, only show the buffers that were opened in that specific tab
@akashkarnatak6581
@akashkarnatak6581 2 жыл бұрын
8:59 It kicks you out of vim because you have set "auto_close=true" in nvim-tree. So whenever you have more than one buffer open and you try to close the active buffer nvim-tree shuts down neovim. vim-bbye seems to be an overkill when you can achieve the same effect using ```close_command = ":bp|sp|bn|bd", right_mouse_command = ":bp|sp|bn|bd" ```. Btw nice video
@cryptocurrents946
@cryptocurrents946 2 жыл бұрын
As you suggest, using a non-sense close command was one of my options: close_command = ":bp|sp|bn|bd",.... where would you set that?
@cryptocurrents946
@cryptocurrents946 2 жыл бұрын
@Stéphane EYBERT What I ended up doing was to map Alt-w to do :Bwipeout and then I do :q to exit nvim (which is the normal expected behavior). But I had to unlearn my habit of automatically typing :q and retrain to Alt-w instead :)
@mezdelex
@mezdelex Жыл бұрын
THANKS 👍🏻
@pPablo240
@pPablo240 2 жыл бұрын
With nvim tree do you have one tree for all tabs?
@aquepaique
@aquepaique 2 жыл бұрын
I prefer to use tab bar as tab bar. Most of the time I work with a lot of buffers, so having many "buffer tabs" becomes unhandy. For finding buffers I use
@tux1968
@tux1968 2 жыл бұрын
Totally agreed, it just seems awkward and wrong. Even in this demonstration when he switched between tabs, and the bufferline stayed the same it just seemed so unintuitive. If there was something equivalent that showed open windows on each tab, it would make more sense... It would be similar to the OS desktop: workspace (tab) -> windows (splits) -> files (buffers)
@Jim-bh2tb
@Jim-bh2tb 2 жыл бұрын
​@@tux1968 Ctrlspace plugin can do that. Im using that in my old vim config but from what I know its only working for airline plugin. EDIT: I actually just install it again. Im really more comfortable decoupling some configuration files from dev files to another tab
@v1d300
@v1d300 Жыл бұрын
I have to ask does bufferline does not work for Windows OS? I am using config from the bufferline docs as a lot of this config is now broken. But I am struggling to get the buffers to be shown in the bufferline but instead it only shows tabs. None of the vsplit buffers in a tab are shown. Also none of the highlights/color scheme for buffferline work for Windows OS.
@xGshikamaru
@xGshikamaru Жыл бұрын
also, the option is not documented, but you can customize the tab separator with tab_separator and tab_separator_selected 😉
@xGshikamaru
@xGshikamaru Жыл бұрын
if you get a bunch of warnings at the start of nvim, just replace guifg by fg, guibg by bg, and gui = "italic" by italic = true
@vikki1891
@vikki1891 9 ай бұрын
:Bdelete does not close the window but :bdelete does For example, if you split into two windows after :Bdelete you still have two windows but after :bdelete you have only one window.
@Momijie
@Momijie Жыл бұрын
I was wondering is it possible to get :help files to display on bufferline, I was trying to get this to work to no avail.
@ra2carrier749
@ra2carrier749 Жыл бұрын
So how to close those opened buffers other that right click it?
@ayoubelmhamdi7920
@ayoubelmhamdi7920 2 жыл бұрын
i hat 'windows/tab/splite' in vim/neovim for that, i open just one file for each time, i like default tab in sublimetext, all tab still open , simple to moveit, splite it, it's very classic and logic
@hugohabicht6274
@hugohabicht6274 2 жыл бұрын
Just to understand that correctly, are tabs just like workspaces in i3 and buffers like open program windows?
@chrisatmachine
@chrisatmachine 2 жыл бұрын
hmm kinda, but a tab could have the exact same loaded buffer in it as another tab.
@danielknight1570
@danielknight1570 Жыл бұрын
"you can click on it if you're that kinda person" found that so funny.
@blabla5534
@blabla5534 Жыл бұрын
even if it was unintended , it's a sick burn :)
@jonthoroddsen6467
@jonthoroddsen6467 Жыл бұрын
Do you actually use tabs for anything? I'm just unable to see any use cases for them. Would like to use them as workspaces but since the buffers are common to all tabs that seems clumsy
@chrisatmachine
@chrisatmachine Жыл бұрын
I don't in my config, I just use winbar now to show the filename. But for people trying to transition from something like vscode this feels more familiar.
@lawrancej7473
@lawrancej7473 2 жыл бұрын
You seem so tired. Take some rest mate :D
@chrisatmachine
@chrisatmachine 2 жыл бұрын
I think I just sound that way naturally, my sleep schedule has actually improved lately.
@lawrancej7473
@lawrancej7473 2 жыл бұрын
@@chrisatmachine good to know 😊. Thanks a lot for your efforts
@dubOZ
@dubOZ Жыл бұрын
bro what's with the bass at 7:05
@macfhlannchadharonan4668
@macfhlannchadharonan4668 2 жыл бұрын
why switch from barbar?
@chrisatmachine
@chrisatmachine 2 жыл бұрын
builtin support for nvimtree offset, I was also noticing barbar was throwing some errors when I had a very small window open, idk why.
@FranklinArdiansyah
@FranklinArdiansyah 2 жыл бұрын
Switch to lvim slowly and forget used vscode :)
@bryantfoo9816
@bryantfoo9816 2 жыл бұрын
hi sir. i wanna ask is there anyway to stop telescope from previewing pictures? i am on windows
@lawrancej7473
@lawrancej7473 2 жыл бұрын
Acutally he expained this in his video on telescope. He just used some kind of telescope plugin to enable that feature. Just remove those lines and you're good to go.
@chengkailiang7239
@chengkailiang7239 2 жыл бұрын
it looks cool. But I think this is too much line GUI IDE (too much noisy for seeing buffers list as a tab for all the time). I personally like the good old way for manage vim buffers. I can have multiple buffers in one windows when need. Show only one buffer if I like too. I also map buffer navigation to tab and s-tab for go buffers movement.
@tonyjaradev
@tonyjaradev Жыл бұрын
remap brain to this=> windows are panes, buffers are tabs, and tabs are windows.
@qwarlock4126
@qwarlock4126 Жыл бұрын
Exactly….tmux translation
@ronanmacfhlannchadha7774
@ronanmacfhlannchadha7774 2 жыл бұрын
Appreciate the explanation on the stuff but I think it’s best to keep these videos conside on the topic at hand, which is installing and configuring a particular plugin. What windows/tabs/buffers are is better suited to a standalone video imo
Why I Prefer Emacs Over VSCode and vim
8:23
Code to the Moon
Рет қаралды 111 М.
你们会选择哪一辆呢#short #angel #clown
00:20
Super Beauty team
Рет қаралды 42 МЛН
THEY made a RAINBOW M&M 🤩😳 LeoNata family #shorts
00:49
LeoNata Family
Рет қаралды 32 МЛН
3M❤️ #thankyou #shorts
00:16
ウエスP -Mr Uekusa- Wes-P
Рет қаралды 14 МЛН
Always be more smart #shorts
00:32
Jin and Hattie
Рет қаралды 49 МЛН
Why Vim Experts Do THIS Instead of Using Tabs...
7:55
DevOps Toolbox
Рет қаралды 123 М.
Why I Switched From NEOVIM To VSCODE
13:45
Anthony GG
Рет қаралды 21 М.
I Rewrote My Entire Neovim Config...
11:09
TJ DeVries
Рет қаралды 38 М.
10 Advanced Vim Features (You Probably Didn't Know)
21:47
Sebastian Daschner
Рет қаралды 67 М.
My Entire Neovim + Tmux Workflow As A DevOps Engineer On MacOS
1:08:17
Mischa van den Burg
Рет қаралды 158 М.
Neovim - ~25 Custom Keymaps set with Lua
15:36
chris@machine
Рет қаралды 73 М.
simple neovim debugging setup (in 10 minutes)
9:36
TJ DeVries
Рет қаралды 29 М.
30 Vim commands you NEED TO KNOW (in just 10 minutes)
10:27
typecraft
Рет қаралды 71 М.
1$ vs 500$ ВИРТУАЛЬНАЯ РЕАЛЬНОСТЬ !
23:20
GoldenBurst
Рет қаралды 1,6 МЛН
Урна с айфонами!
0:30
По ту сторону Гугла
Рет қаралды 8 МЛН