roman

@hi@romanzolotarev.com




homehttps://romanzolotarev.com

193 following, 485 followers

4 ★ 2 ↺

[?]roman » 🌐
@hi@romanzolotarev.com

updated my vi tips.

i'm trying to switch from to vi, but feel sad missing some awesome plugins... :(

and most of all the best file manager for vim ever

    ...
    Older...

    [?]Tim Chase » 🌐
    @gumnos@mastodon.bsd.cafe

    @hi

    I find that a lot of things people try to wedge into vim have perfectly cromulent alternatives outside vim. If you want a file-manager, there's mc, nnn, ranger, and likely a dozen others…that said, most of the time I just use the classic Unix commands like mv/cp/cd/ls/etc to manipulate files.

    I find it's more a mindset thing (vi/vim is for editing, let other tools do other specialized tasks rather than wedge them into vim) than anything else.

      ...
      0 ★ 0 ↺

      [?]roman » 🌐
      @hi@romanzolotarev.com

      i have a workflow where oil.nvim is quite essential, hard to replicate with anything else.

      so convinient to search and rename files in a directory, change to lowercase, swap columns with visual block, etc

      sure i can use mv/cp/cd/ls, but with oil i can do things with fewer keystrokes and less cognitive load. so yes, i just got too comfortable and lazy... ❤️

        ...

        [?]Tim Chase » 🌐
        @gumnos@mastodon.bsd.cafe

        @hi
        sounds a bit like how I use rename(1) (a perl utility, since there are several packages where "rename" is the binary name) that lets me use the full power of perl regex for renaming like

        $ rename 's/foo/bar/' *.png # replacements

        $ rename 'y/A-Z/a-z/' *.png # lowercase

        $ rename 's/(.*)_(.*).txt/$2_$1.txt' *.txt # swap bits

        🙂

          ...

          [?]Russ Sharek » 🔓
          @RussSharek@mastodon.art

          @gumnos @hi

          I'm on a similar vim yeeting spree, and a tool like this would be really handy. Where can I find it?

            ...

            [?]Tim Chase » 🔓
            @gumnos@mastodon.bsd.cafe

            @RussSharek

            Alas, because of the shared-naming, it goes by a number of names. On OpenBSD, it's

            $ pkg_info -m | grep -i rename
            p5-File-Rename-2.02 …

            On my $DAYJOB Ubuntu instance, it was just the "rename" package.

            I think I had to install it manually on my FreeBSD box since it's in ~/bin/perl5/bin/rename, but it's been years.

            Even if you don't 100% yeet vim 😛

            @hi

              History