I found my favorite neovim plugin

Поділитися
Вставка
  • Опубліковано 18 тра 2023
  • 🐦Twitter: / typecraft_dev
    Fellas, oil.nvim is an amazing neovim package. In this video I'm going to show you how to install and use oil.nvim. It honestly hits the sweet spot of my workflow. I love to jump between directories and files, and create new files/directories from there. Oil.nvim allows you to navigate your dirs and create/edit filenames and dirs like a vim buffer. it truly is amazing and I hope you like it too.
  • Наука та технологія

КОМЕНТАРІ • 158

  • @mahirabbas3700
    @mahirabbas3700 Рік тому +269

    thanks nerd

  • @typecraft_dev
    @typecraft_dev  Рік тому +20

    Little bit of a different format for this video. What do you guys think? Take it easy, I have a big ego and a frail mind.

    • @richarddiphoorn
      @richarddiphoorn Рік тому +3

      It's nice to see the face behind the radio voice. 😀

  • @elbowtido27
    @elbowtido27 3 місяці тому +2

    I saw this the other day and I've been using it. It's a fantastic plugin. The ` backtick/tilde key also does a :cd to that dir with the default keybinds. Useful for running relative path scripts/functions. Very nice!

  • @robimalco
    @robimalco 7 місяців тому +5

    Thanks man. this plugin is exactly what I was looking for since too long

  • @stevearc
    @stevearc Рік тому +46

    Glad you're liking it! Oil is built on the shoulders of giants (vim-vinegar, vidir, dirbuf.nvim), and I'm happy to see my humble iteration on this idea is useful. Cheers!

    • @typecraft_dev
      @typecraft_dev  Рік тому +5

      Thank you Steve for the amazing plug-in!

    • @ominoino1495
      @ominoino1495 Рік тому +5

      Hey, steve i been using Oil for months
      It comes so handy in editing file-structure's
      A big thx 🎉

    • @fraso
      @fraso Рік тому +1

      Absolutely love your work man, good job!!

    • @RoryDavidWatts
      @RoryDavidWatts 8 місяців тому

      It's really helpful, thanks very much!

  • @benjaminbras7475
    @benjaminbras7475 Рік тому +4

    This is great. Exactly what I've been looking for

  • @sourcedecay
    @sourcedecay 5 місяців тому +2

    Loving this plugin. Thanks!
    I'm running a heavily modified nvchad and to get it working properly, I did pretty much the same config as you did but had to "lazy = false" in the plugin import to get everything working.

  • @lpanebr
    @lpanebr Рік тому +2

    Thanks for sharing that plugin! I think I'll like it.

  • @j1d7s
    @j1d7s Рік тому +12

    This is great for not losing the (work)flow! Another plugin for the toolbox.

  • @jamesmillsnicholas7813
    @jamesmillsnicholas7813 Рік тому +2

    Being able to edit the text of the TUI is a great idea

  • @unendlicherping318
    @unendlicherping318 Рік тому +1

    Is it possible to move files between directories using this plugin?

  • @shahab5191
    @shahab5191 24 дні тому

    OMG! that's amazing. vim plugin developers are really genius

  • @heroe1486
    @heroe1486 3 місяці тому +1

    I've seen this video several months ago and your new ones just lately witg the moustache and I just figured out it's the same person. Wouldn't have guessed it without the channel's name.

  • @typingturtle5155
    @typingturtle5155 6 місяців тому

    this is neat! I'm curious what you use to grep within the current directory?

  • @lmnts556
    @lmnts556 8 місяців тому

    Looks cool, thanks for sharing.

  • @SB-rf2ye
    @SB-rf2ye Рік тому +2

    very cool. thanks for the tutorial!

  • @dat0mri
    @dat0mri 6 місяців тому +1

    i cant thank you and the creator enough. danks a lod

  • @StrikerEureka85
    @StrikerEureka85 Рік тому +1

    Oilright! Thanks for the share.

  • @Andrei_Calazans
    @Andrei_Calazans Рік тому +4

    Dude this plugin is so damn good I had to comment.

  • @arnabbanik6403
    @arnabbanik6403 4 місяці тому

    if there is nvim-tree installed, then would oil.nvim be as effective?

  • @apina2
    @apina2 9 місяців тому +2

    I'm using vim-plug, glad we're on talking terms 😉😘

  • @lawaynebennett1195
    @lawaynebennett1195 Рік тому +4

    I'm new to nvim but have been struggling to get my lunar vim to recognize my python virtual environments if you can possibly do a video on setting up this functionality would really appreciate it❤

  • @byte.raccoon
    @byte.raccoon 5 місяців тому

    Is this a nvim-tree on the left?

  • @nicoaudy
    @nicoaudy Рік тому +2

    need more content like this!🔥🔥

  • @falcomomo
    @falcomomo 6 місяців тому +3

    Looks like a lite version of dired from emacs. This is a great way of getting around and making bulk changes to files.

  • @cagataykaydr3015
    @cagataykaydr3015 Рік тому +1

    That was my biggest problem, thank you so much

  • @cbbcbb6803
    @cbbcbb6803 9 місяців тому

    Can it be configured to startup in input mode?

  • @nickmills8476
    @nickmills8476 Рік тому +1

    Oil is super smooth

  • @JLM6671
    @JLM6671 10 місяців тому

    Very good plugin, what i dont understand, either this plugin or any neo tree filesystem is how can i create a file that is recognize by my LSP (LSP FORMATING for example) without leaving nvim and going back again on this newly created file.

  • @IainSimmons
    @IainSimmons Рік тому +9

    Looks like it would pair well with the telescope file browser. Can you have it open a particular directory instead of the directory your current buffer is at? Because then maybe can bind a key to open the ditectory for whatever is selected by telescope file browser. That would be much quicker!

    • @reed6514
      @reed6514 6 місяців тому

      Was he using telescope? I've only ever used nerdtree & not familiar with others, but his looked nice.

  • @pluraltest9242
    @pluraltest9242 Рік тому

    I like oil but I want to see the folders on the side and I’m not sure if oil can do that so I use neotree which can also create files

  • @ilyapunko1127
    @ilyapunko1127 Рік тому +19

    Actually, you can do the same with neo-tree, open explorer in current cwd, or with telescope-file-browser. I use both.

    • @-Kal-
      @-Kal- Рік тому +3

      I do this with the built-in Netrw explorer. The only thing I changed was mapping '-' to open it.

    • @mateharu
      @mateharu Рік тому +1

      Same here, but I use nvim-tree. It’s highly configurable. The dash binding is ingenous though.

    • @eminvesting
      @eminvesting Рік тому +3

      ​@@-Kal- yeah I honestly don't see any value in this plugin

    • @ronaldweasly561
      @ronaldweasly561 Рік тому

      ​@@eminvesting😂, me too, wasting my data

    • @zachmoring284
      @zachmoring284 Рік тому +3

      The biggest advantage I found for Oil is that it allows you to manipulate the filetree as if it were lines of text, rather than as a different kind of object. Stuff like copy-paste directory, add new file, etc. follow the same finger-motions/finger-logic as regular Neovim. That was a HUGE plus for me and made it awkward to go back to other file options.

  • @desuburinga
    @desuburinga Рік тому +3

    Curious, is there any advantage to do that in a buffer vs directly with netrw?

    • @aleclowry7654
      @aleclowry7654 Рік тому +1

      Don't need to learn new bindings lol

    • @typecraft_dev
      @typecraft_dev  Рік тому +1

      This is true. It’s personal preference. I like that this is essentially another vim buffer

    • @smjonas8616
      @smjonas8616 Рік тому +2

      Oil is useful if you want to apply several actions at once. Let's say you wanted to rename several files at the same time (e.g. rename file1.txt to file1_new.txt, file2.txt to file2_new.txt and so on). With oil you can just use append "_new" to every line in the buffer (= each file) just like in a regular buffer. With traditional file browsers, you would have to run several commands instead.

    • @desuburinga
      @desuburinga Рік тому

      @@smjonas8616 Oh yes that's very true.
      Thanks everyone, very compelling reasons to give oil a go 👍

  • @LS-jv4uh
    @LS-jv4uh 6 місяців тому +2

    I wonder: could you scaffold a new project by loading the directory structure from a saved file into a buffer and then run oil.nvim on it?

    • @reed6514
      @reed6514 6 місяців тому +2

      It looks like you could copy+paste from your existing project's oil buffer into your new project dir's oil buffer. Idk. Haven't used it.

  • @Rockem1234
    @Rockem1234 8 місяців тому +1

    Just like the builtin file manager in Emacs :)

  • @protosssc790
    @protosssc790 Рік тому

    Can I ask a question about Neovim animation? Can I get the animation working on lazy vim ? I spend some hours but it didn’t work😢

  • @realMenta
    @realMenta 4 місяці тому

    Indeed, an amazing plugin! Now I only want to manage files inside neovim

  • @topcivilian
    @topcivilian Рік тому +1

    I'm about ten seconds into the video
    The background music is outrageous

  • @pavloburyanov5842
    @pavloburyanov5842 4 місяці тому +1

    TypeCraft: its a beautiful day outside
    Me: absolutely
    Backgroud: I fixed my lazy+treesitter by removing packer from share folder

  • @irascib1e
    @irascib1e Місяць тому +1

    Dumb question here; what's the advantage of oil over nerdtree?

    • @typecraft_dev
      @typecraft_dev  29 днів тому

      I use both. Oil is great when I’m in a file and want to create something new in the same directory. Depends on preference really

  • @wojciech-kulik
    @wojciech-kulik 7 місяців тому +1

    what colorscheme do you use?

    • @typecraft_dev
      @typecraft_dev  7 місяців тому +1

      In this video I’m using Dracula! Muwahahahaha

    • @wojciech-kulik
      @wojciech-kulik 7 місяців тому

      @@typecraft_dev thank you, I've turned into Dracula too :D

  • @picklypt
    @picklypt Рік тому +1

    THIS IS SOOOO GOOD! Holly ****

    • @typecraft_dev
      @typecraft_dev  Рік тому

      Haha dammit I love this

    • @picklypt
      @picklypt Рік тому

      @@typecraft_dev Thanks for this. This is legit a game changer for me

  • @atljBoss
    @atljBoss 3 місяці тому

    There's also mini.files. Which is much better IMO since it opens up as a little panel

  • @tonyjaradev
    @tonyjaradev Рік тому +1

    Hey, cool vid! How is it different from creating everything from your tree plugin?

    • @typecraft_dev
      @typecraft_dev  Рік тому +3

      It acts like a vim buffer. That’s essentially what I love about it. Less keybindings to remember

  • @davor12
    @davor12 8 місяців тому +1

    4:13 the neovim experience in a nutshell

  • @jt099
    @jt099 8 місяців тому

    Ohh man this is good!!

  • @marshmallow8709
    @marshmallow8709 Рік тому +7

    the way you say you should use lazy and then.. don't actually use any of its features is making me go insane

    • @typecraft_dev
      @typecraft_dev  Рік тому

      HAHA damn!
      In all fairness, I do use some of its features in other parts of the plugins file. Maybe they're not visible in the video. But it's there I promise!

    • @marshmallow8709
      @marshmallow8709 Рік тому +2

      @@typecraft_dev Sorry I sent that at 3 am I didn't really mean it !

  • @TheSast
    @TheSast Рік тому +2

    ok yeah this is pretty cool

  • @codephil
    @codephil 4 місяці тому

    I'd find it really helpful if you had a keypad tracker on the screen. Great work! Subscribed.

  • @niksingh710
    @niksingh710 Рік тому +1

    would like to see pressed keymaps

  • @thelonerat9557
    @thelonerat9557 Рік тому

    cool, gonna try it now

    • @typecraft_dev
      @typecraft_dev  Рік тому +1

      GOGOGO

    • @thelonerat9557
      @thelonerat9557 Рік тому

      @@typecraft_dev it conflicts with nvim-tree though, how can you get both to work?

    • @typecraft_dev
      @typecraft_dev  Рік тому

      @@thelonerat9557 it does? I use both in this video

    • @thelonerat9557
      @thelonerat9557 Рік тому

      @@typecraft_dev solved it, need to turn off hijack_directories of nvim-tree.

  • @brandongregori995
    @brandongregori995 11 місяців тому +9

    It's a novel concept, but definitely very tempting. But at the end of the day, I like way telescope-file-browser blends seamlessly with telescope, and I really don't create/edit files often enough to warrant making the switch.

    • @aonodensetsu
      @aonodensetsu 6 місяців тому +3

      you can have both, when exploring you use that one, and when creating this one, That's what i'm planning to do

  • @Linuxdirk
    @Linuxdirk Рік тому +1

    This looks great. Can you do mass-renaming with it?

    • @fraso
      @fraso Рік тому +2

      Yes you can do it as you would in a normal buffer

  • @saravananm2280
    @saravananm2280 7 місяців тому

    Tried mini.files ?

  • @andrewiglinski148
    @andrewiglinski148 Місяць тому +2

    To be honest, not really needing a plug-in like this… I’m super used to my vim workflow, but nice to have you on team Dracula…. F*** all those Tokyo Night dweebs.

  • @auntiecarol
    @auntiecarol 3 місяці тому

    I was looking for something like Emacs' writeable dired. This might be it.

  • @THEMithrandir09
    @THEMithrandir09 Рік тому +1

    does it do mv or git mv?

    • @typecraft_dev
      @typecraft_dev  Рік тому

      You can rename a file and prepend the name with a dir to mv it to a different dir

    • @THEMithrandir09
      @THEMithrandir09 Рік тому +1

      @@typecraft_dev I was wondering whether it'll add the rename to git. Using normal move to rename files tracked with git is bad practice. If I can tell it to use git mv instead of normal mv when renaming files in a repo, that'd be great :)

  • @NWave04
    @NWave04 6 місяців тому

    ctrl+z, cd?

  • @julian-fricker
    @julian-fricker Рік тому +1

    I was thinking, hey cool maybe lazy now gets around you having to setup.... and then boom!

  • @aestheticcoders
    @aestheticcoders 3 місяці тому

    Thanks typecraft, although I sense typescript from this name😅

  • @phobosmoon4643
    @phobosmoon4643 Рік тому +1

    poop is my go-to variable name if i dont have anything else

  • @lolikpof
    @lolikpof Рік тому +2

    the headphones - Oneodio 😹

    • @typecraft_dev
      @typecraft_dev  Рік тому

      OMG yes!!! I needed a cheap replacement for the dead Bose headphones I had.

    • @lolikpof
      @lolikpof Рік тому

      @@typecraft_dev you got the wrong ones tho. The Oneodio Pro-50 (with those thicc pads) are a LOT more comfortable, and they sound better than the ones you got. But oh well, they're still good for the price 👍

  • @guruware8612
    @guruware8612 5 місяців тому

    so you got a filemanager in vim, whats so great about that in 2024 ?

    • @heroe1486
      @heroe1486 3 місяці тому

      Apparently renaming/creating/moving files in a vim fashion instead of having to switch to a different workflow like you have too with telescope for example.
      I think he confused people by emphasizing it opens it in your cwd while it's something every file explorer does.

  • @ElijahManor
    @ElijahManor Рік тому +3

    Love it ❤

  • @saturnaliam
    @saturnaliam 8 днів тому

    i just realized.. isn’t this basically just a neovim version of dired in emacs lol

  • @maks12007
    @maks12007 Рік тому +2

    Nice video! 5.2 => 6k🙌🙌

  • @user-uw5vd6gv1e
    @user-uw5vd6gv1e 8 місяців тому

    such a cool, but not enough to build it from scratch from first time.

  • @underflowexception
    @underflowexception Рік тому

    whats the difference between this and nvim tree? if i already have nvim tree installed can't i just open it up and use that?

    • @typecraft_dev
      @typecraft_dev  Рік тому +4

      I use both! I just love popping open a buffer within my current directory. The file creation / renaming is more straightforward in this plugin because its just another buffer and not some file explorer with its own keybindings and whatnot

  • @lupanama1960
    @lupanama1960 11 місяців тому +2

    then you will love "fern" even more

  • @abdulkadersafi
    @abdulkadersafi Місяць тому

    oil ???!?!?!??! freedom 🔫🔫

  • @creepr524
    @creepr524 8 місяців тому +1

    Dired

  • @bombrman1994
    @bombrman1994 11 місяців тому +1

    I’m officially a cool neckbeard nerd

  • @bicube7529
    @bicube7529 Рік тому +1

    damn, I use packer, had to close the video at 2 min lol

  • @diegoaestrada-rivera1901
    @diegoaestrada-rivera1901 6 місяців тому

    you can do this exact same thing with stock vim

    • @typecraft_dev
      @typecraft_dev  6 місяців тому

      Whaaaaaaaaaaaaaaa?

    • @MePatrick73
      @MePatrick73 13 днів тому

      @@typecraft_dev :Ex you can create a new directory with d, a new file with %, you can rename with R.

  • @Lars-ce4rd
    @Lars-ce4rd 2 місяці тому

    Seems redundant to me, but maybe I just don't understand

  • @hglbrg
    @hglbrg Рік тому +2

    The empty plastic container echo sound your keyboard makes when the keys recoil drives me insane. :/

    • @typecraft_dev
      @typecraft_dev  Рік тому

      Aw damn it’s a nice keyboard. Happy hacking silent Bluetooth I love it

  • @jrreed47
    @jrreed47 7 місяців тому

    mini.files does the same thing

  • @zhdi
    @zhdi 18 днів тому

    Just saying, cool guy use fuzzy find to open file hahahah

  • @ohmyv3gatron
    @ohmyv3gatron 8 місяців тому

    this feels more like emacs to me...

    • @typecraft_dev
      @typecraft_dev  8 місяців тому

      Really?

    • @ohmyv3gatron
      @ohmyv3gatron 8 місяців тому

      @@typecraft_dev yes it feels very much like dired to me. Even if targeted towards vertico. I’m smiling because after neovim I moved to treemacs as I liked nerd tree and neovim users make like a emphasis on buffers. The work flow at least…

  • @ricardor8044
    @ricardor8044 Рік тому +1

    You can do same exact same thing using the nvimtree which you already have in your config

  • @tanweerashif
    @tanweerashif 5 місяців тому

    Nvim-tree and neo-tree are better in my opinion.

  • @RocketLR
    @RocketLR 5 місяців тому

    Another tool for the chastity belt. Oyeah.

  • @tal500
    @tal500 10 місяців тому

    No!!! Don't let emacs methods go to vim (:horor)

  • @marceelino
    @marceelino 6 місяців тому +1

    Wow, this is so complicated.

  • @Danielo515
    @Danielo515 Рік тому

    For being a bearded hipster your plug-in managing strategy is quite lame ;)

    • @typecraft_dev
      @typecraft_dev  Рік тому

      Lol damn

    • @Danielo515
      @Danielo515 Рік тому

      @@typecraft_dev don't get me wrong, when I was using packer I had a similar setup. But using lazy you can have everything in a single file: plugin spec, configuration and keymaps

    • @willernst
      @willernst Рік тому

      @@Danielo515 ewwww

  • @musashimiyamoto9035
    @musashimiyamoto9035 9 днів тому

    if you were actually cool, you wouldn't be on macos -_-
    all jokes mac >>>> windows lol

  • @paechan
    @paechan Рік тому +2

    poops_controller