roman
@hi@romanzolotarev.com
193 following, 485 followers
i'm trying to switch from #neovim to vi, but feel sad missing some awesome plugins... :(
and most of all the best file manager for vim ever
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.
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... ❤️
@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
🙂
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 😛