vifm - The Terminal File Manager For The Vim-Centric User

Поділитися
Вставка
  • Опубліковано 29 сер 2024

КОМЕНТАРІ • 106

  • @jcwl70
    @jcwl70 5 років тому +113

    00:00 Intro
    02:29 launch vifm
    02:52 how navigate
    03:57 How exit vifm
    04:27 start vifm with a couple of arguments
    05:20 play around with panes
    07:17 preview a file
    11:03 how show hidden files (I missed za keybinding)
    12:25 how change a file name
    14:10 bookmarks
    16:55 delete, paste, move files
    18:55 vifm config files
    22:55 set up color theme
    23:27 Thanks

  • @perahh7659
    @perahh7659 5 років тому +29

    Your voice relax me☺️

  • @andrewpalm2103
    @andrewpalm2103 5 років тому +8

    Thanks for another very useful tutorial, Derek! After your mention of vifm on the Free & Open Chat a week and a half ago I gave it a try. I have been using ranger for some time now, but vifm looked interesting. You can in fact make ranger effectively two-pane by changing its rc.config file to include the line "set column_ratios 1,1" and then create a tab with "gt" when it is open. However, I liked vifm because the keybindings are closer to vim than those in ranger.
    The vifm configuration file makes it easy to create your own commands. However, it's a bit harder to find key combinations not already used by vifm, so I took a clue from reading the config file and start my custom commands with a comma. Also, I prefer when opening files to open another window rather than remain inside vifm, and custom commands are a way to do this. Here are some examples:
    " ------------------------------------------------------------------------------
    " My custom keybindings
    " Use F4 for editing with vim but with fork
    nnoremap :!xterm -e vim %f &
    " Mount and unmount usb thumb drive to /dev/sdb1
    nnoremap ,usbm :!udisksctl mount -b /dev/sdb1
    nnoremap ,usbu :!udisksctl unmount -b /dev/sdb1
    " Preview multiple image files in sxiv thumbnail mode
    nnoremap ,vi :!sxiv -t %f &
    " Use Geany editor
    nnoremap ,g :!geany %f &
    " ------------------------------------------------------------------------------
    By the way, the sxiv image viewer is a very nice program from suckless that uses vim keybindings. I learned about it from looking at vifm. I very much like the image preview feature in ranger, but it does require w3m-img and a compatible terminal (xterm is the easiest in my experience, once your .Xresources file is set up). Using sxiv is fast and you can use VISUAL mode to select multiple files to view in sxiv thumbnail mode (see above).
    And as you can see from the last custom command, I still use Geany for programming instead of vim. :-)
    Cheers,
    Andy

  • @OmarIskandarone
    @OmarIskandarone 3 роки тому +1

    Just found out about vifm today, life is getting a whole lot better!

  • @FantabulousNoise
    @FantabulousNoise 5 років тому +4

    Glad you're taking a look. This is still a mainstay for me since I recommended it a while ago.

  • @bobgrimes8618
    @bobgrimes8618 5 років тому +14

    Merry Christmas DistroTube! Hope you got a lot of Linuxy gifts under your tree!

    • @DistroTube
      @DistroTube  5 років тому +3

      Merry Christmas, Bob!

    • @billfawcett3691
      @billfawcett3691 5 років тому

      @Grayson Peddie You obviously didn't drop enough hints in the last few weeks b4 Christmas. Mind you I dropped "I need (yet another) new battery for my Dell Mini 9" hints for months - Santa wasn't listening B-(

  • @russghound
    @russghound 5 років тому +3

    This was very helpful in learning how to get around in VIFM. Thanks!

  • @netherlabgames7511
    @netherlabgames7511 4 роки тому +2

    EPIC video! Thanks for being so thorough!!

  • @DanielBornt
    @DanielBornt 5 років тому +2

    I love vim an dthis file manager might actually come in really handy for me! Thanks for the great content!

    • @DistroTube
      @DistroTube  5 років тому

      Thanks, Daniel! I might do more with vifm on a video in the future. Keep finding neat stuff with it.

  • @guilherme5094
    @guilherme5094 5 років тому +3

    Thanks DT this is great!

  • @riseabove3082
    @riseabove3082 4 роки тому +5

    I know this is a year old but I LOVE VIFM. I was using Ranger as my previous favorite and I tried MC but the speed of VIFM can't be beat.
    Just wish you covered how easy it is to change file permissions and group/owner too. Those are useful.

    • @marioschroers7318
      @marioschroers7318 4 роки тому

      Using ranger here. The more I dig into vim (actually using nvim as a matter of fact), the more appealing playing around with other terminal applications gets. Considering checking out vifm now :)

  • @AegirAexx
    @AegirAexx 5 років тому +1

    Your videos are great. Keep on keeping on.

  • @bloque9.estrategiaseninter374
    @bloque9.estrategiaseninter374 3 роки тому

    Thanks for the tutorial. Such a great one and discovered vifm because of your videos. Congrats!

  • @RobBoudreau
    @RobBoudreau 5 років тому +2

    Great overview DT. I've been using vifm for quite a while, couple years I guess by now. Love it. It can do "Miller mode", the 3-pane view like default Ranger too, though I don't know why anyone would. A quick tip you may have already found: where you set what opens filetypes in the rc file, if you want to have a choice of the programs to use, add them under the default one with the same syntax. Then when you're on the file, type ":f" , and it will open a menu for you to choose what app to use, based on what you put in the vifmrc.
    You can also get it to preview images like Ranger. wiki.vifm.info/index.php/How_to_preview_images Works really well.
    It's a great application, I'm glad to see it get some recognition and showcasing. Thanks Derek, and again, a very Merry Christmas to you!

    • @DistroTube
      @DistroTube  5 років тому +1

      Thanks, Rob. Good stuff...especially with the image previews. Personally, I don't need image previews....I usually didn't enable them in Ranger. But for many people, it is a nice feature and, for some, probably a deal-breaker so it's good that it's supported.
      Merry Christmas and Happy New Year!

    • @RobBoudreau
      @RobBoudreau 5 років тому +2

      @@DistroTube, I agree. I only use it when I want to make sure an image is the one I'm looking for. Hit "w" and it shows me the image like the text view, hit "w" again and it's gone. It's faster than launching some other viewer just for a peek. Really, vifm has become my Swiss Army Knife. I have it tailored to my needs, and use it for everything. I'm so glad you chose to do a show about it, I really think more people - especially CLI users - should be made aware of it.

  • @yallaoui
    @yallaoui 4 роки тому

    Hi DT
    Indeed vifm is a great file manager.
    FYI in xfce if one maps nnoremap o :!thunar %f & then you can open any file with its default application.
    This optimizes the vifmrc a great deal.
    Best

  • @Rypervenche
    @Rypervenche 5 років тому

    When you add or delete marks with :marks, it only affects the ~/.config/vifm/vifminfo file, which is why you were having that problem. You'll need to remove it from your vifmrc file if you really want it gone for good. (and then maybe again from :marks)

  • @Delis007
    @Delis007 5 років тому

    Great video, thanks! Merry Christmas

  • @autonaut279
    @autonaut279 2 роки тому

    this makes me want to make a file manager!

  • @Diego-ms4ts
    @Diego-ms4ts 5 років тому +3

    You should review the "nnn" file manager.

  • @guyincognito5663
    @guyincognito5663 4 роки тому +11

    Man, I wasted so much of my time not using vim and vifm.

  • @SzTz100
    @SzTz100 3 роки тому

    Thanks, I didn't know about vifm

  • @SlideRSB
    @SlideRSB 5 років тому +3

    I've been using Ranger but the 2-pane design of vifm looks nice to me. The thing with Ranger that seems hands down the best is how it handles opening files using rifle. Also previewing images in the terminal is pretty awesome. I'll have to put vifm to the test to see if it can dethrone Ranger for me. Is vifm your preferred file manager now, Derek?

    • @DistroTube
      @DistroTube  5 років тому

      Been using it for the past 2 or 3 weeks. I like it. Will I stick with it long term? Uh, maybe. Who knows. But I do love the workflow of this thing.

  • @webmandman
    @webmandman 4 роки тому +1

    hey did you stick with vifm? its been more than a year. if not, what are you using now?

  • @magno5157
    @magno5157 5 років тому

    Very, very nice for Vim users. One thing I'm curious about is that what does the search command "/" and the substitute ex-command ":s" do in Vifm???
    Using almost-Perl-like regex in a file manager would be very nice indeed.

  • @3N4N
    @3N4N 5 років тому +2

    Hey, thanks for the videos. Really entertaining and educational. I was wondering why not use ranger cause most of the people use that. It's a little bloated. But if you want minimal then you should think about NNN. Hope to know your thoughts.

    • @DistroTube
      @DistroTube  5 років тому +4

      >I was wondering why not use ranger cause most of the people use that.
      Most people use Ubuntu. Should I run Ubuntu? Most people probably use GNOME. Should I run GNOME too?
      As far as why vifm compared to nnn...vifm uses vim commands. I know those commands. The commands in nnn are not intuitive at all and would take some effort to learn. And what is the payoff for that? What am I getting in nnn that I don't get in vifm?

    • @3N4N
      @3N4N 5 років тому

      @@DistroTube makes sense.

  • @indigo0086
    @indigo0086 2 роки тому

    This is awesome, I discovered this far too late lol. The mnemonics are off though

  • @Ictioso
    @Ictioso 5 років тому +1

    Great video, keep it up man, congrats

  • @xthebumpx
    @xthebumpx 5 років тому +2

    What color scheme is your terminal using?

  • @aleksandar4411
    @aleksandar4411 3 роки тому

    Also check cp command. It makes changing file permissions childs play.

  • @gordo120294
    @gordo120294 2 роки тому

    I do not speak English but I will get the question, sorry. In the 9:34 minute of the video you press the "ISO_LEFT_TAB" key, I do not know how to interpret it and I am interested in the functionality it performs. Thank you

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

    Is it possible to use it like midnight commander to?
    Like left source and right destination. Or to compare, etc?

  • @totheknee
    @totheknee 4 роки тому +1

    functionality of cw and cW should be swapped. Has the author of vifm ever even used vi?

  • @llellouche
    @llellouche 5 років тому +5

    Try nnn it's minimalistic terminal file manager based it's amazing

  • @DOLGOVUSER
    @DOLGOVUSER 2 роки тому

    Any clue how to force it to use terminal colors? It just overrides my ST colors and it's config's 255-color-syntax is just pure confusion...

  • @thingsiplay
    @thingsiplay 3 роки тому +4

    14:54 "Watch what happens…"
    Goes to the Videos folder.
    "ahhhm"
    Switches to a different folder.
    xD

  • @MrOnion2001
    @MrOnion2001 2 роки тому

    First: sorry for not reading all the comments, so maybe it is possible this question is double
    I am just a user, not software engineer, and I recently stumbled over vifm and still looking and making familiar with it, but it seems to be a light and "good to handle" file manager.
    What I didn't find till now: is there any function to change more than one filename at once (e.g. with ascending numbers)?
    example holiday photos: 100 pics on card and I want to change the automatic (number-)filename in name001, name002 ... name100

  • @gjermundification
    @gjermundification 5 років тому

    ScreenKey FTW!

  • @sergeynosov1901
    @sergeynosov1901 5 років тому +2

    What do you think about emacs/spacemacs with evil to use instead of vim?

    • @DistroTube
      @DistroTube  5 років тому +2

      I've never used emacs.

    • @Jorge-xf9gs
      @Jorge-xf9gs 4 роки тому +2

      @@DistroTube Lol, remember the good ol' days when you were pure XD

  • @iMarimbaFTW
    @iMarimbaFTW 5 років тому +1

    I lose terminal transparency in vifm, any idea how to fix it? Thanks
    EDIT: It works on my laptop w/ dwm + compton. Not on my desktop with xfce, I also tried another terminal + compton and it didn't work either. Weird, sounds like an xfce issue.
    EDIT2: Fixed in the colors section, changing ctermbg=black to ctermbg=none in the Win highlight section. It isn't set to that on my laptop and gets transparency, so that's odd lol oh well.

    • @DistroTube
      @DistroTube  5 років тому

      Glad you figured the color part out. I've noticed transparency in some terminal apps works in certain terminal emulators and not in others. Lynx, for example, is nice and transparent in urxvt. Not transparent in st with the alpha patch. Not a big deal though because you can always add in some transparency with compton if all else fails.

  • @bendover4728
    @bendover4728 3 роки тому +1

    How do you change the names of several files at once? I saw certain bald man performing this trick some time ago..

    • @benvella1728
      @benvella1728 3 роки тому

      Pattern based substitution. /%s/oldText/newText/flags
      Edit: should mention it is regex compatible which is insane.

  • @kostasxgodspeed6530
    @kostasxgodspeed6530 3 роки тому

    Hey DT, do you have an idea if and how I can connect to Samba Shares with ViFM? This will help me get rid of gui file manager

  • @samdavis9751
    @samdavis9751 5 років тому +1

    white mace windu with that purple font

  • @GreyDeathVaccine
    @GreyDeathVaccine 5 років тому

    Ranger fits my needs better, but vifm has some nice features.

  • @Subzearo
    @Subzearo 4 роки тому +1

    Can more than one file be highlighted at once? If so, what is that action called?

    • @DistroTube
      @DistroTube  4 роки тому

      Hit "t" to select/deselect. If you are selecting a large block of files, hit "v" to get into visual mode and then j/k to select.

  • @olekollo7875
    @olekollo7875 3 роки тому +1

    what is better vifm or ranger?

  • @CaptianMurdock
    @CaptianMurdock 5 років тому +2

    How would you compare this to Ranger?

    • @DistroTube
      @DistroTube  5 років тому

      I've been enjoying vifm a bit more than ranger. The vim keybindings make it pretty intuitive. There are even some hacks out there to get icons in vifm, and w3m image previews in vifm. I got the icons working pretty easily. The w3m image previews aren't working correctly for me though (the image shows but is buggy--think I messed up something in the config file for it).

  • @DD-su8zm
    @DD-su8zm 4 роки тому +1

    this is insane..

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

    I like more than ranger.

  • @MrDeejayjfx
    @MrDeejayjfx 5 років тому

    nice

  • @moamenfoad4864
    @moamenfoad4864 5 років тому +1

    How i can start my linux career
    What jobs will avilable for me as freelancer
    How i can kearn basics

    • @DistroTube
      @DistroTube  5 років тому

      You asking the wrong guy. I work in retail. :D

    • @nileshk1455
      @nileshk1455 4 роки тому +1

      I have the same question, although I work in other technology I love linux from the core. Its terminal interface, capability to do everything through keyboard :D, open sourceness and large community but alas I dont find any way to use this passion in the earning as well.
      I hope love for linux never dies among people....

  • @DOLGOVUSER
    @DOLGOVUSER 2 роки тому

    Once again i'm here to ask:
    TERMINAL COLORS IN VIFM. HOW.

  • @Robertass2000
    @Robertass2000 4 роки тому

    would be good to get functionality with w key for pictures. i hit w and guess what. bunch of mess instead of picture preview.

    • @homfes
      @homfes 3 роки тому

      Were you already able to find the fix for this?

  • @zulkris
    @zulkris 3 роки тому +1

    spelling v i f m exactly as google-translate do it :D

  • @HDQuote
    @HDQuote 5 років тому

    my inactive panel has all lines with black text and white background which looks really ugly. How can I disable this feature?

    • @HDQuote
      @HDQuote 5 років тому

      Solved it by just doing:
      > sudo pacman -Rns vifm
      > rm -r .config/vifm

    • @HDQuote
      @HDQuote 5 років тому

      Actually, after every restart of vifm it redoes these changes

    • @HDQuote
      @HDQuote 5 років тому +1

      Solved now for good:
      change:
      colorscheme Default
      to:
      " colorscheme Default
      (i.e. comment it out)

  • @MoreChannelNoise
    @MoreChannelNoise 5 років тому

    Nice video abt it. Just a tip for begginers to vifm, when in a dir and you want to goto a sub dir, type /nameofdir then press l to enter it

  • @hanspetervollhorst1
    @hanspetervollhorst1 4 роки тому +1

    where is your .vifmrc ?

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

      mine vifmrc is here: /home/user/.config/vifm

  • @Baddream_TTV
    @Baddream_TTV 5 років тому +1

    Does it do image and pdf preview like ranger?

    • @DistroTube
      @DistroTube  5 років тому +1

      There is a bit of a hack to get vifm to display w3m image previews similar to ranger. I wasn't able to get it working correctly though...the images show for me but only for a split second and then disappear. I've been researching other ways to preview images. Haven't come up with a solution that I like yet. Other previews, like text and pdfs, all work just fine in vifm.
      Vifm can also have icons for files/directories similar to ranger.

    • @L.S.Stephens3
      @L.S.Stephens3 4 роки тому

      See time index 22:55. After he explains changing colors, he makes reference to change/update filetypes with the appropriate apps.

  • @dreadesina5216
    @dreadesina5216 4 роки тому

    What plugin to install vifm ?

  • @loupax
    @loupax 4 роки тому

    > Installs vifm
    > Plays around, bindings work as expected
    > Enables preview mode by typing `w` and it works as expected
    > Creates empty ~/.vifm folder so he can create custom configuration
    > Runs vifm again
    > Everything is broken
    😭😭😭😭

  • @idopshik
    @idopshik 4 роки тому

    A very cool video.
    ranger is better btw.

  • @dam0ne
    @dam0ne 3 роки тому

    Installed vifm and all of a sudden the pane I am not in got its colors inverted. Just for navigation, if I preview a file colors looks just fine. Tried reinstalling to no avail, any help would be appreciated. Thanks! Pic related: ibb.co/zsyvpb6

    • @dam0ne
      @dam0ne 3 роки тому

      Adding a new color theme and setting it in the rc file seems to have fixed the issue

  • @parasbhanot
    @parasbhanot 3 роки тому

    i think midnight commander is much easier than vifm

  • @akshatsingh6036
    @akshatsingh6036 3 роки тому

    how to make my terminal like u

  • @bool2max
    @bool2max 5 років тому

    I love your vids but it's kinda weird how you rarely ever look at the camera, it seems like you're reading everything off of a script

  • @IsraelJuliusKJ
    @IsraelJuliusKJ 5 років тому

    One "q", Tovaris. Just one "q".

  • @4clive
    @4clive 5 років тому +1

    What a kerfuffle, I'll stick with Thunar. Once again, mixing server stuff with desktop stuff.

  • @JudahRichardson1
    @JudahRichardson1 5 років тому +1

    Hard pass.

  • @AlucardNoir
    @AlucardNoir 5 років тому

    3:17 "If you wanted to, you could use the arrow keys. The arrow keys do function." So it's nothing like Vim then.

    • @DistroTube
      @DistroTube  5 років тому

      The arrow keys work in vim by default. Many vim users disable them though.

    • @AlucardNoir
      @AlucardNoir 5 років тому +1

      @@DistroTube Of course they do, who can afford an IBM Model M? Wait, what year is it that's just about to come to an end?
      Edit: Also, Merry Saturnalia and a free and open source new year to you and yours!