Neovim - Bufferline Buffers vs Tabs vs Windows Explanation

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

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
@arnoldwolfstein
@arnoldwolfstein 2 жыл бұрын
I've been using nvim +5 years and this is the best video about buffers vs windows vs tabs
@MrBlack-cv8qn
@MrBlack-cv8qn Жыл бұрын
Thank you soooo much for your work on these amazing videos
@thenaman047
@thenaman047 15 күн бұрын
Finally understood, buffers, windows and tabs. Thanks for making this!
@akim5227
@akim5227 2 жыл бұрын
Ayyy, my favorite series is continuing :)
@rubempacelli6815
@rubempacelli6815 2 жыл бұрын
Thank you again!
@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 👍🏻
@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
@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
@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
@xGshikamaru
@xGshikamaru Жыл бұрын
also, the option is not documented, but you can customize the tab separator with tab_separator and tab_separator_selected 😉
@pPablo240
@pPablo240 2 жыл бұрын
With nvim tree do you have one tree for all tabs?
@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.
@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.
@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?
@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.
@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
@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 :)
@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
@FranklinArdiansyah
@FranklinArdiansyah 2 жыл бұрын
Switch to lvim slowly and forget used vscode :)
@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.
@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.
@dubOZ
@dubOZ Жыл бұрын
bro what's with the bass at 7:05
@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.
@tonyjaradev
@tonyjaradev Жыл бұрын
remap brain to this=> windows are panes, buffers are tabs, and tabs are windows.
@qwarlock4126
@qwarlock4126 Жыл бұрын
Exactly….tmux translation
@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.
@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
simple neovim debugging setup (in 10 minutes)
9:36
TJ DeVries
Рет қаралды 27 М.
Neovim and Git: SOLVED
8:03
typecraft
Рет қаралды 59 М.
DO YOU HAVE FRIENDS LIKE THIS?
00:17
dednahype
Рет қаралды 64 МЛН
Can You Draw A PERFECTLY Dotted Line?
00:55
Stokes Twins
Рет қаралды 92 МЛН
Please be kind🙏
00:34
ISSEI / いっせい
Рет қаралды 195 МЛН
Why Vim Experts Do THIS Instead of Using Tabs...
7:55
DevOps Toolbox
Рет қаралды 123 М.
Neovim - NvimTree File Explorer Written In Lua
11:57
chris@machine
Рет қаралды 69 М.
Switching to LAZYVIM
12:42
Titus Tech Talk
Рет қаралды 33 М.
Linux on Windows......Windows on Linux
23:54
NetworkChuck
Рет қаралды 184 М.
Why I Prefer Emacs Over VSCode and vim
8:23
Code to the Moon
Рет қаралды 110 М.
Vim Tips I Wish I Knew Earlier
23:00
Sebastian Daschner
Рет қаралды 41 М.
How to ACTUALLY switch from VS Code to Neovim
5:09
Joshua Morony
Рет қаралды 185 М.
Неразрушаемый смартфон
1:00
Status
Рет қаралды 2,3 МЛН
Hisense Official Flagship Store Hisense is the champion What is going on?
0:11
Special Effects Funny 44
Рет қаралды 2,6 МЛН