VehiclesFashionRecipesBlogsHuntTravelsSportFunHandmadeITEducation
Mini-Games
x

x
zakruti.com » IT - Software » IT, programs, coding
Vim Makes Everything Better, Especially Your File Manager And Shell! DistroTube

Vim Makes Everything Better, Especially Your File Manager And Shell! DistroTube

FBTwitterReddit

video description

Rating: 4.0; Vote: 1
Vim Makes Everything Better, Especially Your File Manager And Shell! DistroTube The more I use Vim, the more I find myself wanting to do everything the Vim way. In this video, I discuss vifm (a vim-like file manager) and I show you how to enable Vi-mode in both the Bourne Again Shell (bash) and the Z Shell (zsh). - https://vifm.info/
Date: 2022-03-30

Comments and reviews: 10


I use vim, but I don't use all the keybindings. I use the arrow keys, not the letter keys, but I do use regular expressions to search or replace, to indent or decent, I use dd or yy to cut or paste and p to paste, I for insert, vG to select to end of file, I know - or $ for beginning of line, end of line, :w for write, :x for write and close, :q for quit, :q! For force quit, n for search next, ? For search before, v down down down to highlight rows then :s/-/ / to indent a section with spaces 1 indent or :s/- // to dedent a section with spaces 1 indent, or similarly for more then 1 indent or dedent
reply

Apparently, as much as I appreciate Vim, you could have done all those changes, much more intuitively with nautilus. If you are on windows, Directory opus has some insane rename features. So if you are learning vim and expect to surpass everyone else because of the powers, we must keep in mind that other are actually just as good, and sometimes better than vim. Something thats hard to learn doesnt always mean that its going to be the best choice. But id still learn vim because its cool, while keeping in mind that you aren't really surpassing anyone else in terms of speed.
reply

So if i understood correctly, vim is like kinda apple.
It's highly efficient, especially when you integrate the usage with your file manager and shell. It becomes an ecosystem of workflow. However, also like apple, when you don't use it as a workflow ecosystem, it makes harder to adjust yourself to the usage of other programs which are outside that ecosystem. It's like using a windows notebook and an android tablet and an apple phone at the same time. Then using the apple phone becomes a pain in the ass because it doesn't play nice with your other devices and systems.

reply

There's a pretty good way I discovered about switching to normal mode while you're in Insert mode without using the Esc key or any other combinations. I'll make a video about it when I got the time. You're going to love Vim more and you're not gonna need to move your hands away from the keyboard or even touch the Esc key.
reply

Cool video! I'm a long time Vim user, but just getting started with file managers, potentially vifm. Btw, if you happen to be using NeoVim, you can set inccommand and see the potential results of your substitute commands live. And the modifier -g- is only needed if you wanna do more than one substitution per line.
reply

You can also add 'set editing-mode vi' to your '-/.inputrc' and that will enable vim bindings to any app that use the GNU Readline, not just Bash. If you're an emacs fan, you can do 'set editing-mode emacs'. Just remember to source '-/.inputrc' after making changes.
reply

The renaming could have easily been achieved with the rename command (in fact, it would have probably been even faster).
rename -_5760x1080_scrot- -- -
Basically means, replace the first string with the second string on all files.

reply

really i dont understand how are you can choose some one esle abbout vim.
its strange.
i see all of you video
but vim its really top one editor.

reply

Congratulations, in one video you clearly showed how unable you are to adapt to different situations! In other words, not a very useful programmer
reply

You should have included the Vimium browser extension. VSCode has a Vim extension as well and two very cool extensions for learning vim.
reply
Add a review, comment






Other channel videos