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

  • @firstfiverugby
    @firstfiverugby4 жыл бұрын

    Actually I would love a video on your entire setup! Its very minimal, efficient, and it looks great!

  • @firenutz698
    @firenutz6984 жыл бұрын

    Just wanted to say I liked the way you presented your material and look forward to more videos!

  • @j4g094
    @j4g0944 жыл бұрын

    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

    @FunctionalIndustries

    4 жыл бұрын

    Sarcasm is a famous British export.

  • @thingsiplay
    @thingsiplay3 жыл бұрын

    I just learned about Ctr+6 to switch to last buffer. Useful stuff here.

  • @FunctionalIndustries

    @FunctionalIndustries

    3 жыл бұрын

    Glad it helped!

  • @civfiveaddict8527

    @civfiveaddict8527

    3 жыл бұрын

    Ctrl 6 is such a wierd shortcut

  • @thingsiplay

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

  • @dexthrw
    @dexthrw3 жыл бұрын

    thank you SO MUCH, I was struggling for quite a while with the commands and couldn't find them anywhere but here

  • @Wayk123
    @Wayk1234 жыл бұрын

    That was a great and concise video. I learn alot, thanks!

  • @SzalonyZibuch
    @SzalonyZibuch4 жыл бұрын

    Great content. Most useful. Please share more of your knowledge.

  • @catraaaw
    @catraaaw5 жыл бұрын

    Great video! Please keep up.

  • @JamieBainbridge
    @JamieBainbridge Жыл бұрын

    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.

  • @pawebakiewicz6786
    @pawebakiewicz67864 жыл бұрын

    Great explanaition. Big thank you for that video :)

  • @FunctionalIndustries

    @FunctionalIndustries

    4 жыл бұрын

    Glad it was helpful!

  • @captaincool6268
    @captaincool62683 жыл бұрын

    Really , really smooth thanks a lot :D

  • @chaotikpie1881
    @chaotikpie18814 жыл бұрын

    Wow. 0:35 seconds in and I've already subscribed. And I thought my arch+i3 rice was cool, wow!

  • @FroL_Onn
    @FroL_Onn2 жыл бұрын

    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!

  • @md.mohiuddin
    @md.mohiuddin3 жыл бұрын

    This was great !

  • @Mraclaws
    @Mraclaws5 жыл бұрын

    Looking forward to your vim windows video

  • @boggledeggnoggler5472
    @boggledeggnoggler54724 жыл бұрын

    Your desktop is so god damn nice to look at

  • @FunctionalIndustries

    @FunctionalIndustries

    4 жыл бұрын

    Thank you!

  • @tonybaloney212
    @tonybaloney2125 жыл бұрын

    awesome work, I've been using tabs but buffers looks way better

  • @bitcointrader8586
    @bitcointrader85864 жыл бұрын

    Nice one mate

  • @dhanushc5744
    @dhanushc57444 жыл бұрын

    OMG you're just like me. Whenever I'm testing , I also use files like lol.js or test.js XD

  • @avanishpatel4936
    @avanishpatel49364 жыл бұрын

    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

    @skyeplus

    3 жыл бұрын

    You could also use -O to open files in windows

  • @evakuator8118
    @evakuator81185 жыл бұрын

    I see what you did here 0:46 ;)

  • @wobble_cat
    @wobble_cat4 жыл бұрын

    I think it is worth to mention :Lex

  • @shubhamdwivedi7766
    @shubhamdwivedi77663 жыл бұрын

    Your window manager setup is nice would you mind sharing your dot files and config?😍

  • @Jantalus
    @Jantalus3 жыл бұрын

    how did you setup that nice and nasty terminal? Would love to have that transparency and such

  • @xingyang3779
    @xingyang37793 жыл бұрын

    Long may the sunshine

  • @23pointblank
    @23pointblank3 жыл бұрын

    Thanks for this. Google did not have a good answer of how to create a new file in a different directory.

  • @FunctionalIndustries

    @FunctionalIndustries

    3 жыл бұрын

    You're welcome!

  • @ankitrathore5311
    @ankitrathore5311 Жыл бұрын

    I like you wallpaper .. where did you get it ..

  • @armelstsrt
    @armelstsrt4 жыл бұрын

    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

    @FunctionalIndustries

    4 жыл бұрын

    I've recently started using fzf.vim. I should make a follow up video to this one including that stuff.

  • @armelstsrt

    @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

    @urbster1

    4 жыл бұрын

    @@FunctionalIndustries that would be excellent, and if you can make a video about windows and splits it would be much appreciated!

  • @marcello4258
    @marcello42582 жыл бұрын

    ooooooh my god i need this background!!!

  • @FunctionalIndustries

    @FunctionalIndustries

    2 жыл бұрын

    There's a link in the description and theres a video on my channel about how to have an animated background!

  • @marcello4258

    @marcello4258

    2 жыл бұрын

    @@FunctionalIndustries thanks Calin keep on going

  • @AlessandroMinoccheri
    @AlessandroMinoccheri4 жыл бұрын

    I usually work with tabs, do you prefer to using buffer? Why? Why tabs aren't so good?

  • @firstfiverugby
    @firstfiverugby4 жыл бұрын

    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

    @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

    @atypicalambience3487

    3 жыл бұрын

    He is not using a desktop he is using a tiled window manger.

  • @rochr4
    @rochr44 жыл бұрын

    I just spent some time googling how to close netrw instead of watching Your video to the end, silly me! :)

  • @FunctionalIndustries

    @FunctionalIndustries

    4 жыл бұрын

    Thats why you should watch all of my videos to the end! Twice!

  • @Iturner72
    @Iturner724 жыл бұрын

    How did you have such an organized .vimrc? where you can expand each section at 4:24

  • @FunctionalIndustries

    @FunctionalIndustries

    4 жыл бұрын

    Checkout my vimrc video. It has all the details in there.

  • @harshraj22_
    @harshraj22_4 жыл бұрын

    "next time we will have a look at windows and splits"..... Eagerly waiting for next the time to come 🙄

  • @FunctionalIndustries

    @FunctionalIndustries

    4 жыл бұрын

    Just for you, I will start work on that video *right now*

  • @camotubi
    @camotubi5 жыл бұрын

    HOW DO YOU HAVE AN ANIMATION AS BACKGROUND?

  • @FunctionalIndustries

    @FunctionalIndustries

    5 жыл бұрын

    It's an mpv instance made into the background layer with xwinwrap.

  • @evakuator8118

    @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

    @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

  • @empyrean5330
    @empyrean53303 жыл бұрын

    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

    @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

    @a_maxed_out_handle_of_30_chars

    3 жыл бұрын

    @@FunctionalIndustries waiting for this :)

  • @MrAnandml

    @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

  • @quant-prep2843
    @quant-prep2843 Жыл бұрын

    tell me the keyboard name please

  • @ji3230
    @ji32303 жыл бұрын

    "No one has ever had an argument about a text editor, right?"

  • @feschber
    @feschber3 жыл бұрын

    wait are you that guy that posted this animated background on r/unixporn? :0

  • @FunctionalIndustries

    @FunctionalIndustries

    3 жыл бұрын

    Yes, that was me. Welcome to the channel.

  • @feschber

    @feschber

    3 жыл бұрын

    Leafshade Software wow that’s awesome xD the world is small ...

  • @ahmedsunil3235
    @ahmedsunil32354 жыл бұрын

    which Linux distro and desktop manager???

  • @FunctionalIndustries

    @FunctionalIndustries

    4 жыл бұрын

    Arch linux and i3-gaps

  • @nodswal
    @nodswal5 жыл бұрын

    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

    @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

  • @Mirshowkat07
    @Mirshowkat073 жыл бұрын

    Terminal colour is transparent, what is written on terminal is not clearly visible.

  • @FunctionalIndustries

    @FunctionalIndustries

    3 жыл бұрын

    Yea, this is fixed in later videos. Sorry about that.

  • @DuffkaBigNerd
    @DuffkaBigNerd3 жыл бұрын

    What distro are you running?

  • @FunctionalIndustries

    @FunctionalIndustries

    3 жыл бұрын

    Arch but you can make any distro look like mine.

  • @DuffkaBigNerd

    @DuffkaBigNerd

    3 жыл бұрын

    @@FunctionalIndustries Can you send a link for a guide on how to do that?

  • @kqvanity
    @kqvanity3 жыл бұрын

    i understand the idea of trying to avoid additional plugins , but fzf integration is just inevitable

  • @FunctionalIndustries

    @FunctionalIndustries

    3 жыл бұрын

    I agree. I need to make a 2021 version of this video.

  • @georgesmith3022
    @georgesmith30223 жыл бұрын

    bigger fonts please

  • @FunctionalIndustries

    @FunctionalIndustries

    3 жыл бұрын

    I fix that problem in later videos.

  • @captainaxlerod1297
    @captainaxlerod1297 Жыл бұрын

    Looks really cool and novel but this vim shit really isn't practical for most developers

  • @FunctionalIndustries

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