Neovim - Bufferline Buffers vs Tabs vs Windows Explanation

  Рет қаралды 53,887

chris@machine

chris@machine

Күн бұрын

Пікірлер: 42
@arnoldwolfstein
@arnoldwolfstein 2 жыл бұрын
I've been using nvim +5 years and this is the best video about buffers vs windows vs tabs
@akim5227
@akim5227 3 жыл бұрын
Ayyy, my favorite series is continuing :)
@thenaman047
@thenaman047 6 ай бұрын
Finally understood, buffers, windows and tabs. Thanks for making this!
@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 2 жыл бұрын
THANKS 👍🏻
@MrBlack-cv8qn
@MrBlack-cv8qn 2 жыл бұрын
Thank you soooo much for your work on these amazing videos
@aquepaique
@aquepaique 3 жыл бұрын
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 3 жыл бұрын
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
@farzadmf
@farzadmf 3 жыл бұрын
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
@xGshikamaru
@xGshikamaru 2 жыл бұрын
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
@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 :)
@vikki1891
@vikki1891 Жыл бұрын
: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.
@Oblisk-i8h
@Oblisk-i8h 3 жыл бұрын
With nvim tree do you have one tree for all tabs?
@macfhlannchadharonan4668
@macfhlannchadharonan4668 3 жыл бұрын
why switch from barbar?
@chrisatmachine
@chrisatmachine 3 жыл бұрын
builtin support for nvimtree offset, I was also noticing barbar was throwing some errors when I had a very small window open, idk why.
@rubempacelli6815
@rubempacelli6815 2 жыл бұрын
Thank you again!
@ayoubelmhamdi7920
@ayoubelmhamdi7920 3 жыл бұрын
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
@ra2carrier749
@ra2carrier749 2 жыл бұрын
So how to close those opened buffers other that right click it?
@mlyxshi
@mlyxshi 2 жыл бұрын
Very helpful!
@Momijie
@Momijie 2 жыл бұрын
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.
@dubOZ
@dubOZ 2 жыл бұрын
bro what's with the bass at 7:05
@xGshikamaru
@xGshikamaru 2 жыл бұрын
also, the option is not documented, but you can customize the tab separator with tab_separator and tab_separator_selected 😉
@v1d300
@v1d300 2 жыл бұрын
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.
@jonthoroddsen6467
@jonthoroddsen6467 2 жыл бұрын
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 2 жыл бұрын
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 3 жыл бұрын
You seem so tired. Take some rest mate :D
@chrisatmachine
@chrisatmachine 3 жыл бұрын
I think I just sound that way naturally, my sleep schedule has actually improved lately.
@lawrancej7473
@lawrancej7473 3 жыл бұрын
@@chrisatmachine good to know 😊. Thanks a lot for your efforts
@hugohabicht6274
@hugohabicht6274 3 жыл бұрын
Just to understand that correctly, are tabs just like workspaces in i3 and buffers like open program windows?
@chrisatmachine
@chrisatmachine 3 жыл бұрын
hmm kinda, but a tab could have the exact same loaded buffer in it as another tab.
@bryantfoo9816
@bryantfoo9816 3 жыл бұрын
hi sir. i wanna ask is there anyway to stop telescope from previewing pictures? i am on windows
@lawrancej7473
@lawrancej7473 3 жыл бұрын
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.
@haroldcruz8550
@haroldcruz8550 2 ай бұрын
For anyone that just watched this video, the plugin is no longer maintained so it no longer works on the newest version of neovim
@ragumu_rugiku
@ragumu_rugiku 2 жыл бұрын
Switch to lvim slowly and forget used vscode :)
@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 3 жыл бұрын
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 Vim Experts Do THIS Instead of Using Tabs...
7:55
DevOps Toolbox
Рет қаралды 151 М.
Effective Neovim: Instant IDE
16:16
TJ DeVries
Рет қаралды 835 М.
How Strong Is Tape?
00:24
Stokes Twins
Рет қаралды 96 МЛН
Гениальное изобретение из обычного стаканчика!
00:31
Лютая физика | Олимпиадная физика
Рет қаралды 4,8 МЛН
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН
10 Advanced Vim Features (You Probably Didn't Know)
21:47
Sebastian Daschner
Рет қаралды 77 М.
30 Vim commands you NEED TO KNOW (in just 10 minutes)
10:27
typecraft
Рет қаралды 133 М.
Neovim - Setting options with Lua
14:47
chris@machine
Рет қаралды 102 М.
How I Use Tmux With Neovim For An Awesome Dev Workflow On My Mac
21:41
Josean Martinez
Рет қаралды 380 М.
Neovim - Gitsigns Powerful Git Plugin for Neovim
5:55
chris@machine
Рет қаралды 38 М.
Vim as your editor - Advanced Motions P2
12:48
ThePrimeagen
Рет қаралды 187 М.
Turn VIM into a full featured IDE with only one command
11:55
Dreams of Code
Рет қаралды 713 М.
Debugging Code in Neovim (Rust, Go, Python etc)
20:32
Sliced Array
Рет қаралды 2,1 М.
How Strong Is Tape?
00:24
Stokes Twins
Рет қаралды 96 МЛН