The beginning sounded like you were describing your experience in a group therapy for Vim addiction hehe.
@DistroTube5 жыл бұрын
Hi, my name is DT, and I'm an addict...
@zuekut5 жыл бұрын
@@DistroTube Vim is life :)
@jcwl705 жыл бұрын
00:00 Intro 02:35 vifm (vi file manager) 04:33 working with vifm 05:40 renaming bunch of files with vifm 11:04 vim mode enable in your shell (zsh) 13:55 vim mode enable in your shell (bash) 15:08 summary 16:18 thanks patrons!
@MrKlaygomes5 жыл бұрын
thanks
@clockworkpc4 жыл бұрын
Creators should pay for this service.
@maxbarnard71655 жыл бұрын
“VIM is so good it makes me suck at everything else”
@gutox2535 жыл бұрын
"VIM has really penetrated my life in a pretty big way"
@nobytes24 жыл бұрын
@@gutox253 😯
@e.6z14 жыл бұрын
@@gutox253 AND NOT ONLY MY LIFE
@frechjo4 жыл бұрын
iI think I got that joke^[:wq!
@gwojcieszczuk5 жыл бұрын
VIM key bindings really get deep into your brain.
@harrytsang15015 жыл бұрын
IMHO it is the closest we have ever got to brain-computer interface
@tapank4155 жыл бұрын
:good night!
@smorrow5 жыл бұрын
@@harrytsang1501 I'd say the mouse is.
@Patrk385 жыл бұрын
nope. I Can't switch over to hjkl, I gotta use arrows. Even though it gets a bit awkward when switching TMUX panes.
@Patrk385 жыл бұрын
@@TheEjaay why would I? That's simply not comfortable
@TheJobCompany5 жыл бұрын
Vim actually stands for: Vim Is not M'just a text editor, it's a way of life
@anthonyrossi82555 жыл бұрын
M'just, what
@muski2825 жыл бұрын
Recursion detected
@MrGustaphe5 жыл бұрын
Vim Is Mastery
@KatzRool4 жыл бұрын
merely
@lain77583 жыл бұрын
Vim Is More than a text editor (Vim really is a way of life)
@wacesferpit5 жыл бұрын
itfw you automatically press 'i' when trying to writting somethinghhhhhhhhhhhhciwwrite anyway, nice video:wq
@DistroTube5 жыл бұрын
lol
@randomorganist5 жыл бұрын
a Personally, I', used to using the ED commands. . c Personally, I'm used to using the ED commands . w q
@fuseteam5 жыл бұрын
iyou can also type :x to write and quite :x
@SB-qm5wg5 жыл бұрын
LOL Perfect!
@EnsYlmaz515 жыл бұрын
ZZ works for quit also
@TubeHeader4 жыл бұрын
I've been using vim for the last four years, because I couldn't close it
@cjchico4 жыл бұрын
@Meux Palefa ZQ also
@nobeltnium4 жыл бұрын
pfffff, all noobs here keep telling ppl to use zee and qiu. Every one knows pros unplug the power cord
@magnusanderson66814 жыл бұрын
@@nobeltnium That works I guess, but what I found to be equally effective was to stop paying my power bill
@Nimitz_oceo5 жыл бұрын
Lol I loved this: “gg” : “ why in the world is he trying to go the top of the document in steam” that is awesome!
@HuntroMZ5 жыл бұрын
To navigate within a line you can use t (till) and f (find). That way you can avoid pressing h and l multiple times. For example: To move the cursor to the next comma you can use f,
@DistroTube5 жыл бұрын
Yep, I could also have done "w" and "b" to move by word, as well.
@TAsSos1010004 жыл бұрын
The way the files are renamed is really amazing! It even looks unreal if a user uses only a graphical interface! Very nice! Thank you!
@mkschreder5 жыл бұрын
NeoVim is truly taking things to the next level. You can basically run vifm inside a neovim subwindow because you can now have terminal inside a window.
@CheapHomeTech5 жыл бұрын
You might want to start using vim as your terminal. Write the line you want to execute directly into a vim file and then put your cursor over it and execute it. For example I have a file called "/home/dt/Dropbox/fresh-mint-install.bsh" and I add to it anything I install on my system. So for instance after watching this video I added the line: :!apt-cache search vifm | grep "^vifm "; time echo your-password | sudo -S apt-get install -y vifm; apt-cache search vifm| grep "^vifm " and in my .vimrc I have a line that looks like : nnoremap :exe getline(".") So all I have to do is press the f2 key and the line under the cursor will be executed as if it were entered in the shell. Since I live in vim, do all my notes in vim, I sometimes have to open other programs from within. So my daily todo notes might have a line like: Update bank spreadsheet :!libreoffice -o $(locate mybiz.ods) & :!firefox www.bbvacompass.com/ & which would open a browser to my bank and a my libreoffice calc spreadsheet by pressing ,gg because my .vimrc file has a line like: :map gg :.,.s/:!.*&//gcn"tyf&@t:.,.s/&.*:!//gcnf:"tyf&@t Just some thoughts...
@simonced5 жыл бұрын
Nice video. You did a little mistake when explaining /g after your substitute command. /g allows to replace more than one occurence on the same line where a match is found. The % at the beginning of the line is what makes the substitute command to apply to the whole document. Lastly, when saving and closing at the same time, you can use the command :x or event ZZ in normal mode. Also, `dw` will delete until next word, `daw` will delte a word (including space before it) and `diw` will delete in the word.
@RobBoudreau5 жыл бұрын
Something you might find useful DT, try ':set number' in vifm. Gives you line numbers like Vim, makes navigating large folders easier. "25G" would open the 25th folder or file no matter where you are in the folder. You can make it permanent in your vifmrc if you like it. Great video. I can certainly relate to your having Vim bindings ingrained in your head. I hate having to reach for the mouse, and trying to remember "Is it Ctrl-k l, or Alt-k w, or..." ;-)
@rmcellig5 жыл бұрын
Wow Derek!! What an excellent video!! I sent a link no to my nephew who is a HUGE vim fan. I'm starting to use it. So much fun even though most of the time I use nano and am trying to use vim instead. Your vim videos are great and I hope you will do more 😀
@Felga164 жыл бұрын
Great video! I did not know Vifm and now I just love it. Thanks for sharing it with us. Keep going that way.
@djamison9r5 жыл бұрын
I first used vi in 1988 when using Unix and VMS mainframes at college. All these years later, I am back to using it and now I want to use vim bindings in everything. Back in the day, I didn't realize how powerful and efficient it is...
@miyalys4 жыл бұрын
9:53 /g (= greedy) in substitute is technically only necessary when what you match may be present multiple times in the same line.
@miyalys4 жыл бұрын
Didn't know about vifm, thanks! Edit: Or exa.
@john_paul4 жыл бұрын
vim is love, vim is life, vim text editor is very nice
@ArtixBTW4 жыл бұрын
Writing anything at school was such a pain since we have to use Google docs
@larrygall58315 жыл бұрын
My first experience with vim was.. unpleasant. I felt trapped, was erasing lines, felt like I froze it up, didn't know what the hell to do, and when I finally got out of it I said "fk this thing.." Now use it all the time. People getting into Linux should practice on a document you don't care about and learn vim. It's so worth it. I never used vifm, but will be grabbing it later.
@Mesingel5 жыл бұрын
You mean like vimtutor?
@eddiezaraza48055 жыл бұрын
are you and Luke Smith gonna make a video together sometime? both of you are my favorite Linux channels in KZbin
@ichaa3tech5 жыл бұрын
same . but why you want them to make a video together . 5:49 he has a screenshot from luke's video
@gjermundification5 жыл бұрын
2:55 Nautilus and Dolphin are for guests; for personal use there is rsync, cp, mv, mkdir, ln, rm, but also mc, ranger, or vifm if one will have to rename batches.
@riseabove30825 жыл бұрын
Should be mentioned that there is a VI light that comes with most distros and then there is VIM the full pkg you can apt install. The key bindings work ever so differently in VI light vs VIM. I always have to install VIM to get the key bindings to work correctly. I used VIM and preferred it over Nano at the time but after discovering 'micro' I fell in love with its simplicity and how user friendly it was in comparison but still very fast to use. I especially preferred micro's ability to auto-detect different script/programming languages to correctly highlight variables in different colors. Plus it is only one binary file that you install in the /bin folder. I put it on all my Linux boxes.
@torque50565 жыл бұрын
Well said. Micro is brilliant for making quick edits to config files for instance - I can add my lines, then save and quit almost instantly.
@paddor4 жыл бұрын
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.
@ivincentwang5 жыл бұрын
I think the vi mode is implemented by readline library that is widely used by many terminal interactive tools, like bash. For browser, the Surfingkeys chrome and Firefox extension will make you feel at home, it has a lot of good features, one of the feature that other vim style ext missing is add bookmark. Surfingkeys ext is not very widely known, I guess its name prevents it from easily searched by vim lovers, but it really deserve your time to check it out, believe me
@fission11105 жыл бұрын
Trying to use something that doesn't have vim bindings is like typing with only two fingers. It's a skill that is just about as powerful for editing text as learning to touch type is.
@rajeshsharma53205 жыл бұрын
VIM really is a way of life!!
@lmfans3 жыл бұрын
Thank you. I always learn something new and useful from your videos. 👍🏼
@johnmm51465 жыл бұрын
Nice one on the vim key binding for shell
@JFDOOLSTER5 жыл бұрын
I always worry about putting vim bindings in bash because then I will become even more reliant on my own systems, making it very hard to work on a vanilla OS on a differently configured computer. I live vim, I definitely will look more into vifm, but i want to make sure i dont forget the bash or other key bindings.
@007arek5 жыл бұрын
I agree with your last words. Plugin for browsers Surfingkeys has similar functionality like the vim. You can move on a website or write in a input text (almost) like in vim.
@DimitriosCharalampidis3 жыл бұрын
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.
@alfonsodonotsi66913 жыл бұрын
amazing video, i´m starting to apply now
@KevinBReynolds4 жыл бұрын
Very cool Derek. Another solid video. I really like this kind of content. Thank you.
@zheli24174 жыл бұрын
some more basic usage will be great, like switch between the two panel and copy files etc
@AlchemistCamp5 жыл бұрын
If I weren't already a happy VIM user, the first 90 seconds of this video would have me afraid of ever trying it!
@luismaflorentin4 жыл бұрын
I'm new at Vim, thanks! Also.. the audio quality is outstanding
@mrdenpes13095 жыл бұрын
mc has been there for 25 years now, and it's still improved. It's a terminal based filemanager. vifm cannot even stand in it's shadow. MC has it all. image preview, file editing, ftp/sftp, far better interface. Better and directly accessible info. Comparing dirs, and so on and so on. for advanced stuff, you can use bash. And it's all more or less build in. You can even set vi as it's main file editor if you wish. (i use nano within mc though). mc had some probs in terminal multiplexers, but not anymore.
@exapsy5 жыл бұрын
Thanks man, learning something good everyday from you. Keep it up!
@DistroTube5 жыл бұрын
Thanks! :D
@andrewpalm21035 жыл бұрын
Good stuff as usual, Derek!
@andyjackson45634 жыл бұрын
Thanks for Sharing enable vim in shell. I was looking for it for a very long time.
@BanditHijo5 жыл бұрын
on Ranger, we can do bulk renaming with press "v" for select all files, then type ":bulkrename", if you set your "export VISUAL="vim" on `~/.profile`, it will open Vim with all list file name. Exactly same like in this video. (^_^)
@user-ej6yc8sr3f5 жыл бұрын
Great vid, thanks! Keep up the content
@glizzdawiz4 жыл бұрын
Practical Vim helped me a lot.
@MrUnderScore811625 жыл бұрын
Personally I’ve found vim keys a life saver on Firefox. I use VIM Vixen plugin and it’s really nice.
@gurdeepgss5 жыл бұрын
Also try "Vimium FF"
@DGDG00000005 жыл бұрын
So try qutebrowser.
@14u2ponder5 жыл бұрын
I made the comment that for a new linux user, their first task should be to learn vim. Vim is very important to your success with linux in general.
@schatalkin5 жыл бұрын
Thanks! vifm is really a fantastic tool!
@churrosgratis3 жыл бұрын
5:44 the guy on the screenshot uses arch btw
@alexanderaric40064 жыл бұрын
Nice tut, but a bit too stretched. When screenshots previews were enabled, the top screenshot was from Luke's channel. Nice that they check eachother.
@DevDungeon5 жыл бұрын
Very cool, didn't know about vifm before!
@loren4814 жыл бұрын
Good video, I know what you mean about how it infiltrates your life. What are you using to get the big arrow shaped blocks denoting Normal mode, etc? Also if you haven't yet, check out the Vimium add on for Chrome and FF, I love it
@gledianlalushllari95773 жыл бұрын
You had 99.9K subscribers. I decided to subscribe thinking it'd reach 100K, but nothing happened. Then I clicked this video and it was 100K (I guess it needed a refresh). Congratulations, but now give me my 100K-th subscriber reward.
@simewn5 жыл бұрын
That looks great, I did not know you could do that in bash, thanks!
@migtrewornan80855 жыл бұрын
I found vi mode in bash very annoying because ctr-L stops working (unbound in vi-insert mode).However eventually I found this on some forum: bind -m vi-insert "\C-l":clear-screen With that binding it's perfect.
@il2xbox5 жыл бұрын
So what you're saying is Vim is a better operating system than Emacs because it actually has a decent text editor?
@fuseteam5 жыл бұрын
i rediscovered vim a few months ago and now i feel slow editing in a regular text editor xD
@gjermundification5 жыл бұрын
Don't forget sc-im or scim: github.com/andmarti1424/sc-im Curses based spreadsheet with vim keys.
@GNU_Linux_for_good5 жыл бұрын
*So* wicked! Thanks man.
@DistroTube5 жыл бұрын
👍
@douhan_wicht4 жыл бұрын
great video, I know I'm a bit late, but could you tell me what your distribution is ?
@cprn.4 жыл бұрын
Put the following in your `~/.inputrc` and you'll have `vi mode` in every CLI tool using standard input (e.g. `mysql`): set editing-mode vi set keymap vi-command
@GGShinobi774 жыл бұрын
woah, didn't know about vifm, installed it right away! :D
@SoundsFromSound5 жыл бұрын
@5:45 -- Is there any way to have vifm show the image correctly, fit to screen, without looking squished? Thank you!
@NourMuhammad5 жыл бұрын
Well, vim is better but you first need to memorize the 105347098754 shortcuts to make your life easier with vim! Thanks vim
@KingZero695 жыл бұрын
vim is love. vim is life. (emacs with evil mode is the master race tho)
@godnika5 жыл бұрын
Which program are you using to display the keys pressed on the screen?
@DistroTube5 жыл бұрын
screenkey. Should be in everyone's repos.
@JamesNearn5 жыл бұрын
14:05 - what is in your login script to create that summary?
@DistroTube5 жыл бұрын
neofetch
@JamesNearn5 жыл бұрын
@@DistroTube ah cool. Thanks!!!
@nikitaermakov28625 жыл бұрын
Yes, vim^Wemacs is a best editor of the world! :) To be serious Vim is a great text editor. But, after a thinking about different text editors I decided that Emacs is the best text editor for me. Emacs was written in C and Lisp (ELisp) and one could change almost any behaviour of the text editor at the runtime using ELisp interpreter. And that ELisp power allows me to change the text editor as a like. Using a Vim give me vibes that it is an ad-hoc editor comparing to the Emacs (which is like a software Lisp machine). Now, I am using vim/sed/ed for ad-hoc tasks like list processing, configs, etc and Emacs to edit source codes, To-Do (org mode), TeX and so on both local and remote (Tramp!). But, anyway they are both cool text editors :) Sorry for off-topic.
@AlNewkirk5 жыл бұрын
I feel you brother!
@mbednarek3605 жыл бұрын
You should try Neovim. I recently switched to it from VSCode and it's pretty nice. Basically vim with more features and better performance.
@chigozie1235 жыл бұрын
What program do you use to show all the keys you are typing? That seems very useful
@DistroTube5 жыл бұрын
screenkey - should be in everyone's repos.
@TonyNguyenTin3 жыл бұрын
Thank you for the lesson.
@gizzmoguy.5 жыл бұрын
This is quite useful thanks.
@WinterWeaver5 жыл бұрын
OOOI! That i3WM? I'm using it but your indicators top right are very nice. What are they? I'm using i3blocks
@DistroTube5 жыл бұрын
I was using herbstluftwm in this video. The bar is polybar. Configs are on my gitlab page.
@WinterWeaver5 жыл бұрын
@@DistroTube tyvm! Will have a look at that soon!
@ZakariaBoumediane5 жыл бұрын
Would love to see some list whats on your desktop (desktop manager, bar, powerline?, .files etc)
@nelsonyaccuzzi5 жыл бұрын
Me 2
@edupazz3 жыл бұрын
5:50 is that a Luke Smith video screenshot?? Hahaha
@dragonboyjazz5 жыл бұрын
not sure i want to use vim, i like having a graphical system to use why do you have pictures of luke smith in your screenshots folder?
@DistroTube5 жыл бұрын
Good question. And that screenshot was from like 3 months ago. I must have been watching KZbin on one of my monitors (3 monitors) when I took the screenshot. I didn't think about this before making the video. Some of these screenshots could have included me watching Netflix on that monitor....or other stuff.
@dorusie54 жыл бұрын
ciw is the thing I miss most in the shell and other places edit: vi mode in bash (within terminator) only seems to support a couple of commands. Guess it's time to do some research if this is by design.
@rudolfschmidt70445 жыл бұрын
You speak from my heart. Vim is extremely great, the next that comes close it maybe emacs, but I use alt to navigate through my i3 windows and do not like that emacs heavily rely on alt commands. Vim is more independent from that shit, also works on non-desktop environments like server terminals.
@rudolfschmidt70445 жыл бұрын
Which video editing software do you use as a arch linux user?
@DistroTube5 жыл бұрын
Kdenlive. Its easily the best FOSS option
@PerryEarl5 жыл бұрын
The first thing I noticed was that with vim mode enabled in my .zshrc, it no longer allows me to type a a few characters and then scroll though my history of only things that start with those characters. That is probably the thing I love the most about zsh. Do you know of a way that I can retain this functionality with vim mode enabled?
@mixu0015 жыл бұрын
I'd like to know too if this is possible in vim mode
@affiliatewatch5 жыл бұрын
Vim is superior, but it has a steep learning curve 👌
@azadpoursadegh97615 жыл бұрын
very useful and clear. By the way I liked the sound quality.
@mahdinaderian40534 жыл бұрын
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.
@IustinThe_Human3 жыл бұрын
where's the video?
@lordoftheflings4 жыл бұрын
now that you tried emacs do you prefer vim or emacs?
@RazgrizDuTTA Жыл бұрын
With oh my zsh and p10k, the zsh prompt chevron changes to show which vi mode you are in.
@Joy_jester4 жыл бұрын
What's the theme used in vim? It looks great.
@DGDG00000005 жыл бұрын
Pro and cons about ranger then ? Or maybe vim vs ranger ? Why not ?
@gizzmoguy.5 жыл бұрын
Very beautiful theme you have for vim.
@dmrzl5 жыл бұрын
I found ranger to be a few orders of magnitude better than vifm. (just noticed you mentioned it - wonder why you prefer vifm)
@ianpan01025 жыл бұрын
You should *never* limit yourself to only one set of keybindings. As an emacs evil user, I strive to master to both emacs and vim bindings. When I'm on OSX I try to master the macOS bindings too. So I can access any machine with ease and get productive within seconds.
@LeonidBraynerMyshkin5 жыл бұрын
I too don't see a reason for a file manager. You can bulk rename with Vim using the vidir program. Vifm looks really cool - I have it installed - but I have no use for it.
@stephan65303 жыл бұрын
To show vi mode, add this to ~/.inputrc: set show-mode-in-prompt on You can also change the cursor according to the mode. Ref: wiki.archlinux.org/index.php/Readline#Mode_indicator_in_prompt
@spaceiswater65395 жыл бұрын
Does vifm work on Fedora or is it just Debian based as I cant seem to find much on it for Fedora OS? Great video thank you so much its what I have been looking for in years.
@DistroTube5 жыл бұрын
vifm should be in everyone's repos including Fedora. It's been around awhile.
@spaceiswater65395 жыл бұрын
@@DistroTube Many thanks for your reply I will boot my machine up and try it, great video.
@spaceiswater65395 жыл бұрын
@@DistroTube You were right I found it in the fedora repos thanks again.
@spaceiswater65395 жыл бұрын
@@DistroTube I was trying to install this for CentOS7 but its not available in anyway it would seem.
@zaidgharaybeh84224 жыл бұрын
Is there a way in zsh to exit to normal mode and freely navigate the history in vim mode?
@yelanlan5 жыл бұрын
Could you tell me what’s the plugin name that show the file name at the top of vi ?
@DistroTube5 жыл бұрын
Vim-airline.
@yelanlan5 жыл бұрын
@@DistroTube thank you very much
@chuxubank4 жыл бұрын
Why don't do it in Emacs's dired mode with vim key-binding?
@TrekkingPals24 жыл бұрын
Are shell keybindings influenced by alterations in your .vimrc file?
@DistroTube4 жыл бұрын
No, the shell you are using has its own config (ex., .bashrc or .zshrc).
@ranska25064 жыл бұрын
Thanks for this vidéo If you like vim and vifm you can try ranger as a good option for fm.