I've been using nvim +5 years and this is the best video about buffers vs windows vs tabs
@akim52273 жыл бұрын
Ayyy, my favorite series is continuing :)
@thenaman0476 ай бұрын
Finally understood, buffers, windows and tabs. Thanks for making this!
@akashkarnatak65812 жыл бұрын
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
@cryptocurrents9462 жыл бұрын
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?
@cryptocurrents9462 жыл бұрын
@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 :)
@mezdelex2 жыл бұрын
THANKS 👍🏻
@MrBlack-cv8qn2 жыл бұрын
Thank you soooo much for your work on these amazing videos
@aquepaique3 жыл бұрын
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
@tux19683 жыл бұрын
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-bh2tb2 жыл бұрын
@@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
@farzadmf3 жыл бұрын
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
@xGshikamaru2 жыл бұрын
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 Жыл бұрын
"you can click on it if you're that kinda person" found that so funny.
@blabla5534 Жыл бұрын
even if it was unintended , it's a sick burn :)
@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-i8h3 жыл бұрын
With nvim tree do you have one tree for all tabs?
@macfhlannchadharonan46683 жыл бұрын
why switch from barbar?
@chrisatmachine3 жыл бұрын
builtin support for nvimtree offset, I was also noticing barbar was throwing some errors when I had a very small window open, idk why.
@rubempacelli68152 жыл бұрын
Thank you again!
@ayoubelmhamdi79203 жыл бұрын
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
@ra2carrier7492 жыл бұрын
So how to close those opened buffers other that right click it?
@mlyxshi2 жыл бұрын
Very helpful!
@Momijie2 жыл бұрын
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.
@dubOZ2 жыл бұрын
bro what's with the bass at 7:05
@xGshikamaru2 жыл бұрын
also, the option is not documented, but you can customize the tab separator with tab_separator and tab_separator_selected 😉
@v1d3002 жыл бұрын
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.
@jonthoroddsen64672 жыл бұрын
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
@chrisatmachine2 жыл бұрын
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.
@lawrancej74733 жыл бұрын
You seem so tired. Take some rest mate :D
@chrisatmachine3 жыл бұрын
I think I just sound that way naturally, my sleep schedule has actually improved lately.
@lawrancej74733 жыл бұрын
@@chrisatmachine good to know 😊. Thanks a lot for your efforts
@hugohabicht62743 жыл бұрын
Just to understand that correctly, are tabs just like workspaces in i3 and buffers like open program windows?
@chrisatmachine3 жыл бұрын
hmm kinda, but a tab could have the exact same loaded buffer in it as another tab.
@bryantfoo98163 жыл бұрын
hi sir. i wanna ask is there anyway to stop telescope from previewing pictures? i am on windows
@lawrancej74733 жыл бұрын
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.
@haroldcruz85502 ай бұрын
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_rugiku2 жыл бұрын
Switch to lvim slowly and forget used vscode :)
@tonyjaradev Жыл бұрын
remap brain to this=> windows are panes, buffers are tabs, and tabs are windows.
@qwarlock4126 Жыл бұрын
Exactly….tmux translation
@chengkailiang72392 жыл бұрын
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.
@ronanmacfhlannchadha77743 жыл бұрын
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