Handling Multiple Files in vim
Ғылым және технология
Sometimes you need to edit multiple files in vim and use it more like IDE and not just a text editor. I explain here how best to do that.
My dotfiles: github.com/calinleafshade/dots
Twitter: / @calinleafshade
► Wallpaper credit zedotagger
www.deviantart.com/zedotagger...
► Music Credit: LAKEY INSPIRED
Track Name: "Blue Boi"
Music By: LAKEY INSPIRED @ / lakeyinspired
License for commercial use: Creative Commons Attribution 3.0 Unported "Share Alike" (CC BY-SA 3.0) License.
Music promoted by NCM goo.gl/fh3rEJ
Пікірлер: 81
Actually I would love a video on your entire setup! Its very minimal, efficient, and it looks great!
Just wanted to say I liked the way you presented your material and look forward to more videos!
try as I might, I could not manage to fit any more sarcasm into the sentence "no one has ever had an argument about a text editor before". Well done :D
@FunctionalIndustries
4 жыл бұрын
Sarcasm is a famous British export.
I just learned about Ctr+6 to switch to last buffer. Useful stuff here.
@FunctionalIndustries
3 жыл бұрын
Glad it helped!
@civfiveaddict8527
3 жыл бұрын
Ctrl 6 is such a wierd shortcut
@thingsiplay
3 жыл бұрын
@@civfiveaddict8527 You can also use Ctrl+^ instead, which is the same position where 6 is on us based keyboards. Both shortcuts do the same. Alternatively you can use the command :b# to switch to last edited buffer.
thank you SO MUCH, I was struggling for quite a while with the commands and couldn't find them anywhere but here
That was a great and concise video. I learn alot, thanks!
Great content. Most useful. Please share more of your knowledge.
Great video! Please keep up.
I like buffers and buftabline plugin, which displays buffers in the tabline as if they were tabs. One of the very few plugins I use. You can then split or vsplit your window to view multiple buffers at the same time. You obviously know your vanilla Vim which is awesome.
Great explanaition. Big thank you for that video :)
@FunctionalIndustries
4 жыл бұрын
Glad it was helpful!
Really , really smooth thanks a lot :D
Wow. 0:35 seconds in and I've already subscribed. And I thought my arch+i3 rice was cool, wow!
So cool! Not knowing how to work with multiple files is one of the main reasons why I switched to eMacs! Just if I have met this video 10 years back! Life would be SO different!
This was great !
Looking forward to your vim windows video
Your desktop is so god damn nice to look at
@FunctionalIndustries
4 жыл бұрын
Thank you!
awesome work, I've been using tabs but buffers looks way better
Nice one mate
OMG you're just like me. Whenever I'm testing , I also use files like lol.js or test.js XD
You can use vim -p file1 fil2 file3, that will open files in a tabs. You can navigate them with gt, gT or (N)gt where N is a number of a Tab you want to navigate
@skyeplus
3 жыл бұрын
You could also use -O to open files in windows
I see what you did here 0:46 ;)
I think it is worth to mention :Lex
Your window manager setup is nice would you mind sharing your dot files and config?😍
how did you setup that nice and nasty terminal? Would love to have that transparency and such
Long may the sunshine
Thanks for this. Google did not have a good answer of how to create a new file in a different directory.
@FunctionalIndustries
3 жыл бұрын
You're welcome!
I like you wallpaper .. where did you get it ..
What are your thoughts on fzf ? I've been using it for the past few weeks and my vim experience has been better than ever.
@FunctionalIndustries
4 жыл бұрын
I've recently started using fzf.vim. I should make a follow up video to this one including that stuff.
@armelstsrt
4 жыл бұрын
@@FunctionalIndustries okay nice ! Honestly it's so powerful that I rarely use file tree explorers at all now. Except of course when the file I'm looking for is very close to the currently opened one in the hierarchy.
@urbster1
4 жыл бұрын
@@FunctionalIndustries that would be excellent, and if you can make a video about windows and splits it would be much appreciated!
ooooooh my god i need this background!!!
@FunctionalIndustries
2 жыл бұрын
There's a link in the description and theres a video on my channel about how to have an animated background!
@marcello4258
2 жыл бұрын
@@FunctionalIndustries thanks Calin keep on going
I usually work with tabs, do you prefer to using buffer? Why? Why tabs aren't so good?
Hey, what is your setup? How do you get your desktop to look like that. It seems very efficient. Could you comment a bit about your workflow and how you've got this setup going? Thanks! Ill have a look around to see if there a video already on your channel.
@Oakz
4 жыл бұрын
Nice question man! I also got quite curious! Super clean and functional. I feel like I would like to copy it on my ubuntu install.. He has such a few publish video so far, I bet he will like this ideia, to turn his setup into a video. But for now, I can help you by examining his dotfiles, provided in the video descreption. Seems he is using the i3 tiling manager with polybar, for the task bar. His vim style comes by using neovim and termite as terminal emulator. I guess you could even copy his setup by cloning his dotifles.
@atypicalambience3487
3 жыл бұрын
He is not using a desktop he is using a tiled window manger.
I just spent some time googling how to close netrw instead of watching Your video to the end, silly me! :)
@FunctionalIndustries
4 жыл бұрын
Thats why you should watch all of my videos to the end! Twice!
How did you have such an organized .vimrc? where you can expand each section at 4:24
@FunctionalIndustries
4 жыл бұрын
Checkout my vimrc video. It has all the details in there.
"next time we will have a look at windows and splits"..... Eagerly waiting for next the time to come 🙄
@FunctionalIndustries
4 жыл бұрын
Just for you, I will start work on that video *right now*
HOW DO YOU HAVE AN ANIMATION AS BACKGROUND?
@FunctionalIndustries
5 жыл бұрын
It's an mpv instance made into the background layer with xwinwrap.
@evakuator8118
5 жыл бұрын
@@FunctionalIndustries it's cool to have on desktop. I would like to set video as a background, but my laptop battery would not be able to handle it.
@camotubi
5 жыл бұрын
@@evakuator8118 apparently ubuntu has an on_ac_power command. You can have a cron job polling that command. If true do nothing, else close mpv and set feh bg
How about completion plugins in neovim? I'm coming from VSCode trying to speed up my workflow but setting up completion has been painful.
@FunctionalIndustries
3 жыл бұрын
I think I'm due another vim workflow video soon so i'll maybe discuss CoC in that.
@a_maxed_out_handle_of_30_chars
3 жыл бұрын
@@FunctionalIndustries waiting for this :)
@MrAnandml
3 жыл бұрын
Use kite autocomplete Engine its much better than YouCompleteMe and AutoComplt First download and install kite ... Then follow github.com/kiteco/vim-plugin
tell me the keyboard name please
"No one has ever had an argument about a text editor, right?"
wait are you that guy that posted this animated background on r/unixporn? :0
@FunctionalIndustries
3 жыл бұрын
Yes, that was me. Welcome to the channel.
@feschber
3 жыл бұрын
Leafshade Software wow that’s awesome xD the world is small ...
which Linux distro and desktop manager???
@FunctionalIndustries
4 жыл бұрын
Arch linux and i3-gaps
Thank you for the great video. What are the requirements to use find, I copied the lines from your github, but it only works if it only finds one file, if it finds more then one it says E77: Too many file names instead of a list i can select from.
@FunctionalIndustries
5 жыл бұрын
Are you pressing enter after typing find? You should use Tab to start the autocomplete, like ":find myFi" and then it should open the wildmenu
Terminal colour is transparent, what is written on terminal is not clearly visible.
@FunctionalIndustries
3 жыл бұрын
Yea, this is fixed in later videos. Sorry about that.
What distro are you running?
@FunctionalIndustries
3 жыл бұрын
Arch but you can make any distro look like mine.
@DuffkaBigNerd
3 жыл бұрын
@@FunctionalIndustries Can you send a link for a guide on how to do that?
i understand the idea of trying to avoid additional plugins , but fzf integration is just inevitable
@FunctionalIndustries
3 жыл бұрын
I agree. I need to make a 2021 version of this video.
bigger fonts please
@FunctionalIndustries
3 жыл бұрын
I fix that problem in later videos.
Looks really cool and novel but this vim shit really isn't practical for most developers
@FunctionalIndustries
Жыл бұрын
I've been using neovim, full time as a full stack developer for many years now. It's probably not right for everyone but it works well for me.