I found my favorite neovim plugin

  Рет қаралды 104,540

typecraft

typecraft

Күн бұрын

🐦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 Жыл бұрын
thanks nerd
@mahirabbas3700
@mahirabbas3700 Жыл бұрын
4:15 🤣
@typecraft_dev
@typecraft_dev Жыл бұрын
@@mahirabbas3700 🤣
@sabungee4442
@sabungee4442 Жыл бұрын
Bro sounded like the prebuilt-homebuilt V12 engine 💀
@typecraft_dev
@typecraft_dev Жыл бұрын
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 Жыл бұрын
It's nice to see the face behind the radio voice. 😀
@marshmallow8709
@marshmallow8709 Жыл бұрын
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 Жыл бұрын
@@typecraft_dev Sorry I sent that at 3 am I didn't really mean it !
@ilyapunko1127
@ilyapunko1127 Жыл бұрын
Actually, you can do the same with neo-tree, open explorer in current cwd, or with telescope-file-browser. I use both.
@-Kal-
@-Kal- Жыл бұрын
I do this with the built-in Netrw explorer. The only thing I changed was mapping '-' to open it.
@mateharu
@mateharu Жыл бұрын
Same here, but I use nvim-tree. It’s highly configurable. The dash binding is ingenous though.
@eminvesting
@eminvesting Жыл бұрын
​@@-Kal- yeah I honestly don't see any value in this plugin
@ronaldweasly561
@ronaldweasly561 Жыл бұрын
​@@eminvesting😂, me too, wasting my data
@zachmoring284
@zachmoring284 Жыл бұрын
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.
@stevearc
@stevearc Жыл бұрын
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 Жыл бұрын
Thank you Steve for the amazing plug-in!
@ominoino1495
@ominoino1495 Жыл бұрын
Hey, steve i been using Oil for months It comes so handy in editing file-structure's A big thx 🎉
@fraso
@fraso Жыл бұрын
Absolutely love your work man, good job!!
@RoryDavidWatts
@RoryDavidWatts 11 ай бұрын
It's really helpful, thanks very much!
@j1d7s
@j1d7s Жыл бұрын
This is great for not losing the (work)flow! Another plugin for the toolbox.
@typecraft_dev
@typecraft_dev Жыл бұрын
hell yeah brother!
@elbowtido27
@elbowtido27 6 ай бұрын
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!
@Andrei_Calazans
@Andrei_Calazans Жыл бұрын
Dude this plugin is so damn good I had to comment.
@typecraft_dev
@typecraft_dev Жыл бұрын
Thank you!
@robimalco
@robimalco 9 ай бұрын
Thanks man. this plugin is exactly what I was looking for since too long
@apina2
@apina2 11 ай бұрын
I'm using vim-plug, glad we're on talking terms 😉😘
@shahab5191
@shahab5191 3 ай бұрын
OMG! that's amazing. vim plugin developers are really genius
@falcomomo
@falcomomo 9 ай бұрын
Looks like a lite version of dired from emacs. This is a great way of getting around and making bulk changes to files.
@typecraft_dev
@typecraft_dev 9 ай бұрын
Yup it’s very similar
@benjaminbras7475
@benjaminbras7475 Жыл бұрын
This is great. Exactly what I've been looking for
@heroe1486
@heroe1486 5 ай бұрын
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.
@davor12
@davor12 10 ай бұрын
4:13 the neovim experience in a nutshell
@jamesmillsnicholas7813
@jamesmillsnicholas7813 Жыл бұрын
Being able to edit the text of the TUI is a great idea
@topcivilian
@topcivilian Жыл бұрын
I'm about ten seconds into the video The background music is outrageous
@typecraft_dev
@typecraft_dev Жыл бұрын
Ah shit
@pavloburyanov5842
@pavloburyanov5842 7 ай бұрын
TypeCraft: its a beautiful day outside Me: absolutely Backgroud: I fixed my lazy+treesitter by removing packer from share folder
@IainSimmons
@IainSimmons Жыл бұрын
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 8 ай бұрын
Was he using telescope? I've only ever used nerdtree & not familiar with others, but his looked nice.
@nickmills8476
@nickmills8476 Жыл бұрын
Oil is super smooth
@sourcedecay
@sourcedecay 7 ай бұрын
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.
@andrewiglinski148
@andrewiglinski148 3 ай бұрын
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.
@lpanebr
@lpanebr Жыл бұрын
Thanks for sharing that plugin! I think I'll like it.
@nicoaudy
@nicoaudy Жыл бұрын
need more content like this!🔥🔥
@typecraft_dev
@typecraft_dev Жыл бұрын
Sounds good!
@atljBoss
@atljBoss 6 ай бұрын
There's also mini.files. Which is much better IMO since it opens up as a little panel
@brandongregori995
@brandongregori995 Жыл бұрын
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 9 ай бұрын
you can have both, when exploring you use that one, and when creating this one, That's what i'm planning to do
@lawaynebennett1195
@lawaynebennett1195 Жыл бұрын
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❤
@TheSast
@TheSast Жыл бұрын
ok yeah this is pretty cool
@typecraft_dev
@typecraft_dev Жыл бұрын
;)
@StrikerEureka85
@StrikerEureka85 Жыл бұрын
Oilright! Thanks for the share.
@SB-rf2ye
@SB-rf2ye Жыл бұрын
very cool. thanks for the tutorial!
@LS-jv4uh
@LS-jv4uh 9 ай бұрын
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 8 ай бұрын
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.
@picklypt
@picklypt Жыл бұрын
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
@Rockem1234
@Rockem1234 10 ай бұрын
Just like the builtin file manager in Emacs :)
@lolikpof
@lolikpof Жыл бұрын
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 👍
@realMenta
@realMenta 7 ай бұрын
Indeed, an amazing plugin! Now I only want to manage files inside neovim
@cagataykaydr3015
@cagataykaydr3015 Жыл бұрын
That was my biggest problem, thank you so much
@julian-fricker
@julian-fricker Жыл бұрын
I was thinking, hey cool maybe lazy now gets around you having to setup.... and then boom!
@codephil
@codephil 6 ай бұрын
I'd find it really helpful if you had a keypad tracker on the screen. Great work! Subscribed.
@edgardevelops
@edgardevelops 2 ай бұрын
neotree is kinda better I suppose. can create files and folders, copy, delete, rename, show/hide hidden files, search, filter. etc.
@ElijahManor
@ElijahManor Жыл бұрын
Love it ❤
@typecraft_dev
@typecraft_dev Жыл бұрын
Thanks!
@lupanama1960
@lupanama1960 Жыл бұрын
then you will love "fern" even more
@lmnts556
@lmnts556 11 ай бұрын
Looks cool, thanks for sharing.
@abdulkadersafi
@abdulkadersafi 4 ай бұрын
oil ???!?!?!??! freedom 🔫🔫
@saturnaliam
@saturnaliam 2 ай бұрын
i just realized.. isn’t this basically just a neovim version of dired in emacs lol
@niksingh710
@niksingh710 Жыл бұрын
would like to see pressed keymaps
@unendlicherping318
@unendlicherping318 Жыл бұрын
Is it possible to move files between directories using this plugin?
@typingturtle5155
@typingturtle5155 8 ай бұрын
this is neat! I'm curious what you use to grep within the current directory?
@phobosmoon4643
@phobosmoon4643 Жыл бұрын
poop is my go-to variable name if i dont have anything else
@typecraft_dev
@typecraft_dev Жыл бұрын
💩
@irascib1e
@irascib1e 3 ай бұрын
Dumb question here; what's the advantage of oil over nerdtree?
@typecraft_dev
@typecraft_dev 3 ай бұрын
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
@Lars-ce4rd
@Lars-ce4rd 5 ай бұрын
Seems redundant to me, but maybe I just don't understand
@hglbrg
@hglbrg Жыл бұрын
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 11 ай бұрын
Ohh man this is good!!
@bombrman1994
@bombrman1994 Жыл бұрын
I’m officially a cool neckbeard nerd
@typecraft_dev
@typecraft_dev Жыл бұрын
Hell yeah brother
@maks12007
@maks12007 Жыл бұрын
Nice video! 5.2 => 6k🙌🙌
@Linuxdirk
@Linuxdirk Жыл бұрын
This looks great. Can you do mass-renaming with it?
@fraso
@fraso Жыл бұрын
Yes you can do it as you would in a normal buffer
@tonyjaradev
@tonyjaradev Жыл бұрын
Hey, cool vid! How is it different from creating everything from your tree plugin?
@typecraft_dev
@typecraft_dev Жыл бұрын
It acts like a vim buffer. That’s essentially what I love about it. Less keybindings to remember
@desuburinga
@desuburinga Жыл бұрын
Curious, is there any advantage to do that in a buffer vs directly with netrw?
@aleclowry7654
@aleclowry7654 Жыл бұрын
Don't need to learn new bindings lol
@typecraft_dev
@typecraft_dev Жыл бұрын
This is true. It’s personal preference. I like that this is essentially another vim buffer
@smjonas8616
@smjonas8616 Жыл бұрын
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 👍
@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.
@auntiecarol
@auntiecarol 6 ай бұрын
I was looking for something like Emacs' writeable dired. This might be it.
@aestheticcoders
@aestheticcoders 6 ай бұрын
Thanks typecraft, although I sense typescript from this name😅
@arnabbanik6403
@arnabbanik6403 6 ай бұрын
if there is nvim-tree installed, then would oil.nvim be as effective?
@bicube7529
@bicube7529 Жыл бұрын
damn, I use packer, had to close the video at 2 min lol
@typecraft_dev
@typecraft_dev Жыл бұрын
Sorry!
@user-uw5vd6gv1e
@user-uw5vd6gv1e 10 ай бұрын
such a cool, but not enough to build it from scratch from first time.
@byte.raccoon
@byte.raccoon 8 ай бұрын
Is this a nvim-tree on the left?
@cbbcbb6803
@cbbcbb6803 11 ай бұрын
Can it be configured to startup in input mode?
@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
@typecraft_dev
@typecraft_dev Жыл бұрын
that works too! (I actually use both)
@guruware8612
@guruware8612 7 ай бұрын
so you got a filemanager in vim, whats so great about that in 2024 ?
@heroe1486
@heroe1486 5 ай бұрын
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.
@wojciech-kulik
@wojciech-kulik 10 ай бұрын
what colorscheme do you use?
@typecraft_dev
@typecraft_dev 10 ай бұрын
In this video I’m using Dracula! Muwahahahaha
@wojciech-kulik
@wojciech-kulik 10 ай бұрын
@@typecraft_dev thank you, I've turned into Dracula too :D
@creepr524
@creepr524 11 ай бұрын
Dired
@NWave04
@NWave04 9 ай бұрын
ctrl+z, cd?
@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😢
@typecraft_dev
@typecraft_dev Жыл бұрын
which animation?
@thelonerat9557
@thelonerat9557 Жыл бұрын
cool, gonna try it now
@typecraft_dev
@typecraft_dev Жыл бұрын
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.
@saravananm2280
@saravananm2280 10 ай бұрын
Tried mini.files ?
@RocketLR
@RocketLR 8 ай бұрын
Another tool for the chastity belt. Oyeah.
@THEMithrandir09
@THEMithrandir09 Жыл бұрын
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 Жыл бұрын
@@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 8 ай бұрын
you can do this exact same thing with stock vim
@typecraft_dev
@typecraft_dev 8 ай бұрын
Whaaaaaaaaaaaaaaa?
@MePatrick73
@MePatrick73 3 ай бұрын
@@typecraft_dev :Ex you can create a new directory with d, a new file with %, you can rename with R.
@jrreed47
@jrreed47 10 ай бұрын
mini.files does the same thing
@tanweerashif
@tanweerashif 8 ай бұрын
Nvim-tree and neo-tree are better in my opinion.
@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 Жыл бұрын
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
@tal500
@tal500 Жыл бұрын
No!!! Don't let emacs methods go to vim (:horor)
@ohmyv3gatron
@ohmyv3gatron 11 ай бұрын
this feels more like emacs to me...
@typecraft_dev
@typecraft_dev 11 ай бұрын
Really?
@ohmyv3gatron
@ohmyv3gatron 11 ай бұрын
@@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…
@zhdi
@zhdi 3 ай бұрын
Just saying, cool guy use fuzzy find to open file hahahah
@marceelino
@marceelino 9 ай бұрын
Wow, this is so complicated.
@ricardor8044
@ricardor8044 Жыл бұрын
You can do same exact same thing using the nvimtree which you already have in your config
@typecraft_dev
@typecraft_dev Жыл бұрын
👀
@smjonas8616
@smjonas8616 Жыл бұрын
You didn't seem to have understood the point of this plugin ^^
@musashimiyamoto9035
@musashimiyamoto9035 2 ай бұрын
if you were actually cool, you wouldn't be on macos -_- all jokes mac >>>> windows lol
@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
@paechan
@paechan Жыл бұрын
poops_controller
@typecraft_dev
@typecraft_dev Жыл бұрын
Gotta make yourself laugh sometimes lol
Rust and Neovim are AMAZING together
8:15
typecraft
Рет қаралды 37 М.
30 Vim commands you NEED TO KNOW (in just 10 minutes)
10:27
typecraft
Рет қаралды 83 М.
ISSEI & yellow girl 💛
00:33
ISSEI / いっせい
Рет қаралды 21 МЛН
طردت النملة من المنزل😡 ماذا فعل؟🥲
00:25
Cool Tool SHORTS Arabic
Рет қаралды 10 МЛН
ROLLING DOWN
00:20
Natan por Aí
Рет қаралды 10 МЛН
WHO CAN RUN FASTER?
00:23
Zhong
Рет қаралды 42 МЛН
I Love Neovim But I WONT Use It | Prime Reacts
23:22
ThePrimeTime
Рет қаралды 116 М.
My Forever Dev Workflow
16:02
typecraft
Рет қаралды 83 М.
You Should Use A Neovim Distro If You Are New
10:42
ThePrimeTime
Рет қаралды 156 М.
Why oil.nvim is the best directory plugin
9:12
Andrew Courter
Рет қаралды 26 М.
Neovim Lazy Lua IDE - my simple but powerful setup for 2024
29:13
The Holy Grail of Neovim Note Taking
14:38
DevOps Toolbox
Рет қаралды 323 М.
Why I Cant Stand IDE's After Using VIM | Prime Reacts
17:51
ThePrimeTime
Рет қаралды 294 М.
Reacting to Controversial Opinions of Software Engineers
9:18
Fireship
Рет қаралды 2 МЛН
These coding projects give you an unfair advantage
8:13
Jason Goodison
Рет қаралды 999 М.
ПОЧЕМУ МИКРОФОНЫ ИГРОВЫЕ? 🧐
0:46
KEKTAR
Рет қаралды 706 М.
Samsung Galaxy S24 Ultra Vs Iphone 15 Pro Max
0:56
Roanet Tech
Рет қаралды 8 МЛН
Как настроить камеру хоп-ап
1:00
TimToker
Рет қаралды 2,6 МЛН