I found my favorite neovim plugin

Поділитися
Вставка
  • Опубліковано 7 січ 2025
  • 🐦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.

КОМЕНТАРІ •

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

    thanks nerd

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

    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.

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

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

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

    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 Рік тому +5

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

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

    4:13 the neovim experience in a nutshell

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

    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 Рік тому

      It's really helpful, thanks very much!

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

    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.

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

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

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

    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 !

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

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

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

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

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

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

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

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

  • @heroe1486
    @heroe1486 10 місяців тому +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.

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

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

  • @okfun54573
    @okfun54573 5 днів тому

    this plugin saved my life.

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

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

  • @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 Рік тому

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

  • @sourcedecay
    @sourcedecay Рік тому +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.

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

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

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

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

  • @rushyangdarji8954
    @rushyangdarji8954 2 місяці тому

    Oil is cool - and I know its been around for quite some time now - but keeping speed in mind for moving between lot of different projects and directories, I still prefer the "ranger". Ranger allows lot of other features such as bookmarks and builtin commands to check size etc which was deal breaker for me - so no - I didn't switch to Oil.

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

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

  • @LS-jv4uh
    @LS-jv4uh Рік тому +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 Рік тому +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.

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

    need more content like this!🔥🔥

  • @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❤

  • @lucasgualtieri3882
    @lucasgualtieri3882 2 місяці тому

    Hey man, I have a question! You use a file tree plugin, but when you used dash to open the parent directory the buffer / the file you were editing disappeared, can you combo oil with a file tree plugin?

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

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

  • @atljBoss
    @atljBoss 11 місяців тому

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

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

    Oil is super smooth

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

    very cool. thanks for the tutorial!

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

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

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

      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

  • @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 👍

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

    would like to see pressed keymaps

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

    Oilright! Thanks for the share.

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

    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.

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

    That was my biggest problem, thank you so much

  • @brandongregori995
    @brandongregori995 Рік тому +10

    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 Рік тому +3

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

  • @arnabbanik6403
    @arnabbanik6403 11 місяців тому

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

  • @auntiecarol
    @auntiecarol 11 місяців тому

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

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

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

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

    Just like the builtin file manager in Emacs :)

  • @realMenta
    @realMenta 11 місяців тому

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

  • @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

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

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

  • @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

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

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

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

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

  • @byte.raccoon
    @byte.raccoon Рік тому

    Is this a nvim-tree on the left?

  • @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

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

    neotree is kinda better I suppose. can create files and folders, copy, delete, rename, show/hide hidden files, search, filter. etc.

  • @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😢

  • @wojciech-kulik
    @wojciech-kulik Рік тому +1

    what colorscheme do you use?

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

      In this video I’m using Dracula! Muwahahahaha

    • @wojciech-kulik
      @wojciech-kulik Рік тому

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

  • @Oggy-WanKenobi
    @Oggy-WanKenobi 3 місяці тому

    damn the compression in the first 10 seconds of the video

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

    Looks cool, thanks for sharing.

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

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

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

      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.

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

    Can it be configured to startup in input mode?

  • @andrewiglinski148
    @andrewiglinski148 8 місяців тому +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.

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

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

  • @codephil
    @codephil 11 місяців тому

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

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

    ok yeah this is pretty cool

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

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

  • @Lars-ce4rd
    @Lars-ce4rd 10 місяців тому +3

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

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

    Tried mini.files ?

  • @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 👍

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

    I’m officially a cool neckbeard nerd

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

    then you will love "fern" even more

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

    ctrl+z, cd?

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

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

  • @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 :)

  • @diegoaestrada-rivera1901
    @diegoaestrada-rivera1901 Рік тому

    you can do this exact same thing with stock vim

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

      Whaaaaaaaaaaaaaaa?

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

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

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

    Gotta control those poops

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

    Thanks typecraft, although I sense typescript from this name😅

  • @СергейЯворский-л4м

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

  • @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

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

    Ohh man this is good!!

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

    Nice video! 5.2 => 6k🙌🙌

  • @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

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

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

  • @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.

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

    Love it ❤

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

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

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

    mini.files does the same thing

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

    Another tool for the chastity belt. Oyeah.

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

    this feels more like emacs to me...

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

      Really?

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

      @@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…

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

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

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

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

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

    Dired

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

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

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

    Wow, this is so complicated.

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

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

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

      Lol damn

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

      @@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 7 місяців тому

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

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

    poops_controller