Buffers, Windows, and Tabs! OH MY!

Поділитися
Вставка
  • Опубліковано 13 гру 2024

КОМЕНТАРІ • 52

  • @prashlovessamosa
    @prashlovessamosa 7 годин тому +34

    Two days 😅 please upload two videos now

    • @examinethose
      @examinethose 6 годин тому +7

      stop being mean to working dads challenge

    • @GoogleUser-uv9bo
      @GoogleUser-uv9bo 6 годин тому +3

      It's good to procrastinate for him to let newbies catch up learning with his upload speed! 😂

    • @Kane0123
      @Kane0123 42 хвилини тому

      Bro released one a couple mins ago, checkmate

    • @teej_dv
      @teej_dv  32 хвилини тому +2

      Already on it hahaha

    • @justincmendes
      @justincmendes 14 хвилин тому

      Based

  • @PaulMason99
    @PaulMason99 6 годин тому +15

    My favourite ctrl-w mapping is ctrl-w r which "rotates" windows. I'll often have a vertical split with two files, or two places in the same file. Usually the left is for active editing and the right is just for reference. If I want to edit on the right side for more than a second or two I can swap them with ctrl-w r.

    • @Theosibo
      @Theosibo 5 годин тому +1

      Woo, I like this very much. I keep code on left and tests on right, and I rather enjoy the idea of moving my activity to KEEP my active window as the left side and KEEP the right side as reference. Thanks from random internet guy for the tip! :)

  • @ranjithkumar-xt2zw
    @ranjithkumar-xt2zw 3 години тому +3

    Thanks Teej for continues posting videos during holiday season

  • @melonl0rdme
    @melonl0rdme 37 хвилин тому

    Thanks TJ for making these videos

  • @LokeshKrishna1995
    @LokeshKrishna1995 5 годин тому +1

    Missed ya and glad to have you back!

  • @aminroosta-k8q
    @aminroosta-k8q 4 години тому

    I recommend mapping T to :tab split as a replacement for o

  • @saishkalbag7103
    @saishkalbag7103 4 години тому +2

    Come ooonnnnn, make another video on code completions

  • @nightfox6738
    @nightfox6738 5 годин тому +2

    I personally wish a Tab page was a collection of buffers and a window was a collecton of tab pages. It would make things much more intuitively navigable imo.

  • @artyshan5944
    @artyshan5944 7 годин тому +6

    Im remapping gt to tj

  • @danielmelo389
    @danielmelo389 6 годин тому

    Thansk a lot teej, you're the best

  • @Peter-UK-nl6cv
    @Peter-UK-nl6cv 15 хвилин тому

    The Return of the King

  • @melonl0rdme
    @melonl0rdme 37 хвилин тому

    really helps me to get neovimming haha

  • @todd489
    @todd489 8 хвилин тому

    Thanks for the amazing video, I have just been using tmux to split windows before lol

  • @__nemesis__1571
    @__nemesis__1571 6 годин тому

    Omg thank you so much

  • @workflowinmind
    @workflowinmind 4 години тому

    4:30 This reminded me of Donald for some reason

  • @moussaadem7933
    @moussaadem7933 4 години тому

    do you think there's a chance vimscript becomes a legacy deprecated language in neovim, once everyone starts using lua APIs

  • @FilipeAguiarCarvalho
    @FilipeAguiarCarvalho 7 годин тому +1

    One thing that I still struggle with neovim is closing a buffer without exiting the editor. I didn't found a good solution yet.

    • @arcuscerebellumus8797
      @arcuscerebellumus8797 6 годин тому

      I use :bwipeout
      It even sends "textDocument/didClose" to the language server, which gives me some confidence that it was intended as a main way to drop buffers.
      PS: sometimes you need to force it, though - for example, for terminal buffers. But you can just write a function that adds '!' to the command if you're inside one of those, if you want.

    • @cacup7
      @cacup7 5 годин тому

      You can use the command ":bd" to delete a buffer

    • @michaelhenderson9851
      @michaelhenderson9851 4 години тому

      I think astronvim closes buffer with space-c. I’ve been meaning to look up their implementation to replicate it in my current config

  • @FedericoDanielAnastasi-b9w
    @FedericoDanielAnastasi-b9w 4 години тому

    Does any one know which font is TJ using in this video?

  • @oktokt
    @oktokt Годину тому

    even though you are sometimes a tab enjoyer, this video was okay

  • @hvd95
    @hvd95 7 годин тому

    This video comes at the right time for me. My neovim are messed up because tons of things on the screen 😂

  • @the-last-spark
    @the-last-spark 5 годин тому +1

    i use neovim
    in vscode 😭

  • @aciidjj3594
    @aciidjj3594 6 годин тому +1

    new tj video lessgoooo

  • @akshay6019
    @akshay6019 7 годин тому

    Does anyone have the Graphite keyboard layout and use Vim? If so, what is your experience? I just got the Advantage2 Pro and am thinking of learning a new layout.

  • @ArisTheInquring
    @ArisTheInquring 7 годин тому +5

    I've been playing around with tmux and I cant understand why you would use both vim tabs and tmux at the same time since they dot the same things and you crowd your keybinds by having both.

    • @sp3ctum
      @sp3ctum 7 годин тому

      I guess if you are using some plugins or background processes that benefit from having everything inside the same neovim process, it might be useful. Also, it might save resources to have 1 lsp server running instead of many.

    • @cacup7
      @cacup7 5 годин тому

      Depends on personal strategy.
      In my case I love using tmux sessions to manage projects. Each project I open is a tmux session and I find it very useful because each session also means a different cwd that I can interact with.

    • @jesse9999999
      @jesse9999999 5 годин тому +2

      for each project i work on, i have a tmux session with windows that are configured specifically for the project. for a lot of simple projects, it's just a window for vim and a window for my terminal, but for my job my configuration defaults to:
      win 1: vim
      win 2: terminal
      win 3: database (currently a vim session using dadbod ui, but could be any terminal based DB editor)
      win 4: REST scripts that i essentially use to replace postman
      win 5: live terminals, like running the dev server
      so while i could just have vim with an editing tab and a vim terminal tab, using tmux this way gives me a lot more flexibility and tbh i generally don't like using the nvim terminal. ymmv but to me this is a great distinction between why tmux windows vs vim tabs can be nice.

    • @picklypt
      @picklypt Годину тому

      I have a plugin to use the same keybinds to move between both nvim and tmux panes

    • @vivekjha8688
      @vivekjha8688 35 хвилин тому

      @@picklypt christoomey/vim-tmux-navigator?

  • @sh10150711
    @sh10150711 6 годин тому

    I know he is using tokyonight, but mine looks different from his. I did not config anything, and I check the previous videos, he did not either. Anyone know what may be the issue? I actually like this more since it is not too contrasty.

    • @seffradev
      @seffradev 5 годин тому

      I think it might depend on which terminal you're using and what mode it's in. Try running `echo $TERM`. I think one you'd prefer to have is TERM set to xterm-256color. But it also depends on your system, and as mentioned, your terminal application.

    • @isaacalves6846
      @isaacalves6846 5 годин тому

      Maybe it's your terminal emulator?

    • @sh10150711
      @sh10150711 5 годин тому

      @@seffradev I use wezterm on a mac. And it is by default xterm-256.

  • @muizzyranking
    @muizzyranking Годину тому

    Leaving a comment for the algo.

  • @danilo2735
    @danilo2735 4 години тому

    thanks man

  • @tommasobonvicini7114
    @tommasobonvicini7114 6 годин тому +4

    The sad decision of naming a pane "window".

    • @MrVanshajSaxena
      @MrVanshajSaxena 4 години тому +3

      Its the philosophy that matters, here a window means something through which you look, here which is a buffer.

    • @tommasobonvicini7114
      @tommasobonvicini7114 3 години тому +1

      There is no philosophy behind that, it's just naming, bad naming.
      BTW you look through a tab and a buffer as well: it just doesn't make sense.

  • @aamodjoshi2281
    @aamodjoshi2281 7 годин тому

    2nd

  • @zybroxz
    @zybroxz 7 годин тому

    1st