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

แชร์
ฝัง
  • เผยแพร่เมื่อ 7 ก.ย. 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

    • @artaway6647
      @artaway6647 5 ปีที่แล้ว +5

      Doing the god's work

    • @superfoxbat
      @superfoxbat 5 ปีที่แล้ว +1

      How to preview image or video? Same as document? How about thumbnails?

    • @quervo151
      @quervo151 4 ปีที่แล้ว +1

      gj bro

    • @Microphunktv-jb3kj
      @Microphunktv-jb3kj 4 ปีที่แล้ว

      is this thing fuzzy-searchable?

    • @thengakola6217
      @thengakola6217 3 ปีที่แล้ว

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

    • @DistroTube
      @DistroTube  5 ปีที่แล้ว +2

      Good stuff, 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-(

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

  • @russghound
    @russghound 5 ปีที่แล้ว +3

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

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

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

  • @netherlabgames7511
    @netherlabgames7511 4 ปีที่แล้ว +2

    EPIC video! Thanks for being so thorough!!

  • @bloque9.estrategiaseninter374
    @bloque9.estrategiaseninter374 3 ปีที่แล้ว

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

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

  • @AegirAexx
    @AegirAexx 5 ปีที่แล้ว +1

    Your videos are great. Keep on keeping on.

  • @guilherme5094
    @guilherme5094 5 ปีที่แล้ว +3

    Thanks DT this is great!

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

  • @autonaut279
    @autonaut279 2 ปีที่แล้ว

    this makes me want to make a file manager!

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

  • @Diego-ms4ts
    @Diego-ms4ts 5 ปีที่แล้ว +3

    You should review the "nnn" file manager.

  • @indigo0086
    @indigo0086 2 ปีที่แล้ว

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

  • @svenwindpassinger2170
    @svenwindpassinger2170 11 หลายเดือนก่อน

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

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

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

  • @webmandman
    @webmandman 4 ปีที่แล้ว +1

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

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

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

  • @aleksandar4411
    @aleksandar4411 3 ปีที่แล้ว

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

  • @Delis007
    @Delis007 5 ปีที่แล้ว

    Great video, thanks! Merry Christmas

  • @thingsiplay
    @thingsiplay 3 ปีที่แล้ว +4

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

  • @llellouche
    @llellouche 5 ปีที่แล้ว +5

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

  • @xthebumpx
    @xthebumpx 5 ปีที่แล้ว +2

    What color scheme is your terminal using?

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

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

  • @Ictioso
    @Ictioso 5 ปีที่แล้ว +1

    Great video, keep it up man, congrats

  • @GreyDeathVaccine
    @GreyDeathVaccine 5 ปีที่แล้ว

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

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

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

  • @totheknee
    @totheknee 4 ปีที่แล้ว +1

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

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

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

  • @gjermundification
    @gjermundification 5 ปีที่แล้ว

    ScreenKey FTW!

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

  • @vitormelo22
    @vitormelo22 ปีที่แล้ว

    I like more than 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).

  • @zulkris
    @zulkris 3 ปีที่แล้ว +1

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

  • @idopshik
    @idopshik 4 ปีที่แล้ว

    A very cool video.
    ranger is better btw.

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

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

  • @DD-su8zm
    @DD-su8zm 4 ปีที่แล้ว +1

    this is insane..

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

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

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

  • @dreadesina5216
    @dreadesina5216 4 ปีที่แล้ว

    What plugin to install vifm ?

  • @DOLGOVUSER
    @DOLGOVUSER 2 ปีที่แล้ว

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

  • @hanspetervollhorst1
    @hanspetervollhorst1 4 ปีที่แล้ว +1

    where is your .vifmrc ?

    • @sv3163
      @sv3163 22 วันที่ผ่านมา

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

  • @4clive
    @4clive 5 ปีที่แล้ว +1

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

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

  • @akshatsingh6036
    @akshatsingh6036 3 ปีที่แล้ว

    how to make my terminal like u

  • @parasbhanot
    @parasbhanot 3 ปีที่แล้ว

    i think midnight commander is much easier than vifm

  • @IsraelJuliusKJ
    @IsraelJuliusKJ 5 ปีที่แล้ว

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

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

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