I realized that the mouse was not ergonomic when I was a kid because I used to play a lot of Age of Empires. Using keyboard short-cuts to select units and do stuff was way faster than using the mouse, which is great when you're playing a real time strategy game.
Beginner tip: Just learn the most basic commands first and get used to them: exit save insert (i or a) movement keys delete (dw and dd) and ignore everything else. Once you got kinda used to it, learn one new command at a time and use it if needed. This way you won't forget your commands For example the paste command or whatever you think is inefficient the way you're doing Everything else is just for efficiency. But you are already at a point where you can do everything you do with any other editor
q! Set EDITOR=nano rm usr/bin/vi ln /usr/bin/nano /usr/bin/vi Ttys are a bit faster than 300 baud now a days. There’s no need for this arcane insanity.
I've learned all the basics to move around the document, but always had the urge to use the mouse, because many tasks were still annoyingly slow. This video shows the exact commands I needed to love vim!! Cutting and pasting, changing, then modifying those with "in [" or "all paragraph", using / and f to navigate (I don't really use f often, but I think there are plugins that do the same with 2 characters, which should be efficient most of the time). I just wish there was an automatic comment/uncomment script instead of C-v -> iterate lines -> I -> # or // for comment and d for uncomment -> TAB. Like most editors use ctrl + / for comment/uncomment
Before I started using vim, I wasn't even bothered by the mouse problem. Then I started using it a few years back and rarely don't use it for programming.
Wow, watching it a few months later again and just realized I forgot almost everything... I have to save this for watching over and over again! If I could give this video another thumbs up, I would!
Editing at the speed of thought. I heard this sentence in some vim presentation and remember it very clearly and this characterizes vim very well (at least for me).
First I tried emacs, loved it for a while, then my hands started hurting from the default commands. Then I tried Spacemacs, it asked me to choose between vim or emacs mode... I said vim to try it. I got the hang of it... and eventually got tired of big slow text editors that took longer to start than it took for me to edit the file I needed to, so I've been using vim strictly since. Never thought I'd be a vim user... but after trying out the competition I just don't see any benefits of switching to anything else right now. I've heard there are problems with vim when it comes to handling large programming projects(?), if I encounter any setbacks like that I might switch to Spacemacs or something.
I wish someone would make a productive VIM tutorial. Like, literally the least amount of VIM necessary to edit documents 'at the speed of thought' for the most common use cases like standard text documents, and code. Why VIM tutorials insist on showing you 28 different ways of doing the same thing is beyond me.
Or when you try to highlight the word only but the computer grabs the space, or worse, new line character too by default unless you dance the cursor around at the end of the word just right. I’m looking at you ALL Microsoft products.
First timers: -"how do I exit this thing?"? Ctrl-C Ctrl-X EXIT [ENTER] Ctrl-Q ..... smashes keyboard... Ctrl-C again... Esc Esc Esc Esc Ctrl-C. -"Ok. Ill close the window, then reboot and then I'll uninstall this virus"
I have been using vim for two years now and I just can't live without it anymore. When I am stuck with windows and I have to use an IDE, I always check to see if there is a VIM extension. I am simply way faster with vim keybindings.
I just wish vim used JKL; for navigation instead of HJKL so it actually stayed on home row. I know why it was designed that way and I know I can reconfigure it, but that doesn't help me if I'm tasked with editing conf files on a server I don't own and I'm stuck without my vimrc.
hi, I'm late, but I actually use jk a lot more than h; so having 2 strong fingers (index and middle) on jk makes sense to me and a lot of people I use w and b to move horizontally instead, and only use h; on a very few occasions
[ Emacs User Alert! ] The biggest problem with Vim keybindings that I could think of is that it really gets deep in your brain, and you'll not be able to effectively edit text on other software or platform without constantly reminding yourself NOT to use 'hjkl' to navigate or press 'i' and 'ESC' to hop in and out of Insert Mode. While with Emacs bindings all the navigating shortcuts are prefixed with Ctrl or Meta (Alt) and can be ported to different platforms once you get used to it!
i have to sometimes write documents in google docs and you get used to the switch. that said, normal text editing feels like moving through molasses. more platforms should offer basic vim-like controls.
Do you know any good solution for opening all files (from vim, not from terminal) whoses names are written in a single file (filename on each line) and this file is opened in a tab.
I'm able to use the mouse to move the cursor. It automatically enables visual select when I'm highlighting with the mouse. I don't need it, but it does work for me. I'm using Termite if that matters.
I can scroll with mouse, I use thinkpad trackpoint so sush up. :D It scrolls pretty fast through file. Also VIM has troubles with syntax when the lines are too long! And for latex paper with long complex equations, it's painfully slow :(, learned to live with it but keeping shutting down syntax often
that way if i wanna goto a particular line instead of saying goto like 235 or whatever if its 10 lines relative away i can just do 10j instead of g235 or whatever
Also if you are running Manjaro, install gvim instead of vim package.. The gvim package that provides vim is compiled with clipboard support where vim provided by vim package has none. gvim package installs vim as well but with more features.
@@davidbasil3161 Well you don't need a mouse to manipulate clipboard. Tmux allows me to copy and paste in terminal, vim has its own copying mechanism. I don't really know whether Vieb supports notifications, I keep all notifications on my computer off anyways.
st just looks like the chad terminal I've been looking for. Unfortunately I can't get it to run if I don't apply the solarized background patch. Without it I get a stacktrace mumbling about free(): invalid next size (normal): 0x0000557e4d401080. Oh and btw I'm on Debian with Gnome 3.
Also, aside from the raw ergonomic / workflow issues, I have found almost 100% of mice are uncomfortable and cause severe cramping if used for an extended period of time. I have huge hands and I have yet to find a mouse that actually fits my hand.
>Steelseries yeah probably a good size, but way too expensive. *I should've also indicated that I am a cheapskate.* lol I suppose I should just bite the bullet and immediately plan on replacing the switches, since I know they use pussy Omron-brand junk switches in their mice. I also have a old Logitech mx400 that I should repair. It was the closest thing to comfortable I've ever had. (same basic deal; junky switches went bad real fast and I never got around to replacing them) I also have a 20 year old Microsoft Intellimouse that still works great, but the placement of buttons 4 & 5 are a deal breaker. I would be fine with the performance of a typical $5-10 optical mouse, if only the mouse itself was larger and/or had a better shape.
I figured as much.. Used to use vi / vim in the 90's. Thanks for the reply. Just wanted to now if there was a pre-made addon for python highlighting I will check out...
True Hell is when Vim is used through a touchscreen.
Oof
Nearly bricked my cuckphone fucking around in the mobile terminal I know what you mean
I use vim on android lmao 😂🤣
@@sumitpatidar3143 how do you even do that?
Userland
I'm a simple man: I see vim, I click like, then agonize over having left the home row.
J M stealing this
True vimers don't leave the home row. Even in browsers.
Use Qutebrowser! Or a plug-in for Chrome/Firefox/etc. like Vimium!
Try out Vimium extensions!!
Oww pretty good.
I realized that the mouse was not ergonomic when I was a kid because I used to play a lot of Age of Empires. Using keyboard short-cuts to select units and do stuff was way faster than using the mouse, which is great when you're playing a real time strategy game.
1:07
Joke's on you, Luke, I use a trackpoint.
Computer with a clit?
So does he!
Beginner tip:
Just learn the most basic commands first and get used to them:
exit
save
insert (i or a)
movement keys
delete (dw and dd)
and ignore everything else. Once you got kinda used to it, learn one new command at a time and use it if needed. This way you won't forget your commands
For example the paste command or whatever you think is inefficient the way you're doing
Everything else is just for efficiency. But you are already at a point where you can do everything you do with any other editor
:q exit
:q! force exit if file not saved
:wq write and exit
Love how you put exit as a first command to learn
q!
Set EDITOR=nano
rm usr/bin/vi
ln /usr/bin/nano /usr/bin/vi
Ttys are a bit faster than 300 baud now a days. There’s no need for this arcane insanity.
Mostlyharmless1985 who needs vi if there‘s nvim, right?
@@froge8121 out of the box, nvim is seriously laggy for me, not just starting up, but even just moving around the text.
Man!!! I really missed your Vim videos. You should make a series, from noob to guru.
Building a text editor using electron is like using an oil tanker as a paperclip.
Atom
I've learned all the basics to move around the document, but always had the urge to use the mouse, because many tasks were still annoyingly slow. This video shows the exact commands I needed to love vim!! Cutting and pasting, changing, then modifying those with "in [" or "all paragraph", using / and f to navigate (I don't really use f often, but I think there are plugins that do the same with 2 characters, which should be efficient most of the time). I just wish there was an automatic comment/uncomment script instead of C-v -> iterate lines -> I -> # or // for comment and d for uncomment -> TAB. Like most editors use ctrl + / for comment/uncomment
Before I started using vim, I wasn't even bothered by the mouse problem. Then I started using it a few years back and rarely don't use it for programming.
Wow, watching it a few months later again and just realized I forgot almost everything... I have to save this for watching over and over again!
If I could give this video another thumbs up, I would!
Editing at the speed of thought.
I heard this sentence in some vim presentation and remember it very clearly and this characterizes vim very well (at least for me).
I sure do wonder why an editor that predates the mouse doesn't need the mouse.
With the vim-sneak plugin you can use f F t and T vertically :)
6:40 Oh my god, you use *puke* as a mnemonic for p, that's amazing.
Hiandbye95 I didn't realize that till you pointed it out lmao, I assumed that was standard with how confidently he said it
It's not really a vim mnemonic; just a computer metaphor. You'll notice in my other videos I actually use "puke" to mean standard output too.
I've been stuck in vim main menu for 15 years. Send help.
:q!
@@jarosawzieba4527 ZQ
esc + :q
just suck it up and keep editing (' -.-)
0:57 "You have your keys in your keyboard"
Extremely acurrate.
I switched from Emacs 7 days ago. I need to talk about this with someone
Spacemacs seems to combine the best of both worlds. Have you tried it?
First I tried emacs, loved it for a while, then my hands started hurting from the default commands. Then I tried Spacemacs, it asked me to choose between vim or emacs mode... I said vim to try it. I got the hang of it... and eventually got tired of big slow text editors that took longer to start than it took for me to edit the file I needed to, so I've been using vim strictly since. Never thought I'd be a vim user... but after trying out the competition I just don't see any benefits of switching to anything else right now. I've heard there are problems with vim when it comes to handling large programming projects(?), if I encounter any setbacks like that I might switch to Spacemacs or something.
"Oh geez I really wish I could use my mouse here..." said no vim user ever.
I wish someone would make a productive VIM tutorial.
Like, literally the least amount of VIM necessary to edit documents 'at the speed of thought' for the most common use cases like standard text documents, and code.
Why VIM tutorials insist on showing you 28 different ways of doing the same thing is beyond me.
Or when you try to highlight the word only but the computer grabs the space, or worse, new line character too by default unless you dance the cursor around at the end of the word just right.
I’m looking at you ALL Microsoft products.
How to read out vap and similar would be something like: visual *around* paragraph
Hello from Kazakhstan. Love your videos Luke.
how ya doing, bruh?
Very nice!
Hey Luke, love your videos! Just wanted to mention that the document you opoened.about neural nets looked really interesting.
But Stallman told me to use Emacs!
emacs is bloated
First timers:
-"how do I exit this thing?"? Ctrl-C Ctrl-X EXIT [ENTER] Ctrl-Q ..... smashes keyboard... Ctrl-C again... Esc Esc Esc Esc Ctrl-C.
-"Ok. Ill close the window, then reboot and then I'll uninstall this virus"
Do you have a terminal tool for PDF?
Vim and LaTeX are your friends
Very helpful tips! I have been using Vim for a while now, and just love its design :D
Thanks for the effort.
8:14
You don't even have to do that. You can do -> :(line number).
Ex. :23 || :10
etc
I have been using vim for two years now and I just can't live without it anymore. When I am stuck with windows and I have to use an IDE, I always check to see if there is a VIM extension. I am simply way faster with vim keybindings.
just what i needed, but felt intimidated by the docs.
I just wish vim used JKL; for navigation instead of HJKL so it actually stayed on home row.
I know why it was designed that way and I know I can reconfigure it, but that doesn't help me if I'm tasked with editing conf files on a server I don't own and I'm stuck without my vimrc.
That's so true, and I'm quite surprised they never changed it even thought it would be a huge change
hi, I'm late, but I actually use jk a lot more than h; so having 2 strong fingers (index and middle) on jk makes sense to me and a lot of people
I use w and b to move horizontally instead, and only use h; on a very few occasions
SUPER helpful video for understanding Vim! Thank you!
"set mouse=a" for me, because i've got that schweet thinknipple
[ Emacs User Alert! ] The biggest problem with Vim keybindings that I could think of is that it really gets deep in your brain, and you'll not be able to effectively edit text on other software or platform without constantly reminding yourself NOT to use 'hjkl' to navigate or press 'i' and 'ESC' to hop in and out of Insert Mode. While with Emacs bindings all the navigating shortcuts are prefixed with Ctrl or Meta (Alt) and can be ported to different platforms once you get used to it!
i have to sometimes write documents in google docs and you get used to the switch. that said, normal text editing feels like moving through molasses. more platforms should offer basic vim-like controls.
i dont do a whole a lots of text editing but this is AWESOME
are you doing something with sivesutras?
E como você passa pelo checkbox de eu não sou um robo?
vim vim vim and me having no clue what the heck is that
But how do I copy what I selected into my clipboard to paste in another application?
That's the point of vi.
Official tutorial says to use mouse itself for some reason.
Two questions: what distro if Linux are you using? And how do you keep your terminal window a fixed size like that? Thanks!
Distro is Arch or Parabola but that doesn't matter much, he's using i3 as his window manager and that why terminal looks like that
Does vim have auto complete features like vs code?
"You have to move the mouse all the way to where your mouse is"
Why do you think trackpoint exists.
Do you know any good solution for opening all files (from vim, not from terminal) whoses names are written in a single file (filename on each line) and this file is opened in a tab.
Great video! I learned a lot and I think I might give Vim another try!
vim is only for /g/entoomen with the thickest neckbeards
I don’t think using the mouse is a bad thing. But there are times you just don’t have the option to use one, and there vim excels.
Visual block is the only useful visual mode
Change my mind
I'm able to use the mouse to move the cursor. It automatically enables visual select when I'm highlighting with the mouse. I don't need it, but it does work for me. I'm using Termite if that matters.
This video taught me in 10 minutes everything I never got from watching hours of other tutorials! Thank you.
I could like this video before even watching it. But let's watch it first!
4:20 We get it, you VAP
I think you know about easy motion. Why not mention it over here! That's such an awesome plugin to move around
But The Main question still left unanswered - how do i exit vim!? :)
You hold down your computer's power button for 10 seconds.
There's no need. You are now in text-editing Nirvana. You can spend eternity blissfully browsing and correcting the Library of Babel.
I'll have to try that ctrl-v stuff :)
2:19 unless you :set mouse=a
I use it for scrolling text with the mouse wheel
I can scroll with mouse, I use thinkpad trackpoint so sush up. :D It scrolls pretty fast through file.
Also VIM has troubles with syntax when the lines are too long! And for latex paper with long complex equations, it's painfully slow :(, learned to live with it but keeping shutting down syntax often
b-but can he use vim hardmode efficiently?
what would BUP mean in Vim?
OK, not to sound completely naive but what is up with his line numbers? Is that a plugin?
its a setting to set the line numbers relative to his current position
that way if i wanna goto a particular line instead of saying goto like 235 or whatever if its 10 lines relative away i can just do 10j instead of g235 or whatever
How do you change Terminal font size?
Vim is so different than others,
But why it is not popular???
BTW nice videos , Subscribed!!
What is this doc about Sanskrit grammer, looks interesting.
Nice video BTW.
TRuly you are my spirit animal!
ALL THE WAY
ALL THE WAY
man... just do it fast
How to get that option to show dollars and asterisks only if the cursor is in that row?
Andrea Palmieri it's a plugin for markdown file. There are many.
Claudio Roncaglio Thanks! I tried many of them, but I wasn't able to find this feature, do you know how it is called the one he is using?
Andrea Palmieri try this: github.com/vim-pandoc/vim-pandoc/blob/master/README.mkd
Also if you are running Manjaro, install gvim instead of vim package.. The gvim package that provides vim is compiled with clipboard support where vim provided by vim package has none. gvim package installs vim as well but with more features.
Anthony Dach or you can simply install neovim
gvim is also incredibly fast since it doesn't go through a terminal emulator.
"+y copy to clipboard
Vim might not need mouse, but your terminal and browser do
No.
I don't see how a terminal would ever need a mouse.
Plenty of keyboard based browsers exist. I use the Vieb browser.
@@user-he4ef9br7z mouse is needed for copying. regarding vim browsers or extensions, link hinting is slow and uncomfortable
@@davidbasil3161 Copying using the mouse? Where?
And who's talking about browser extensions. Vieb is not an extension but a browser in itself.
@@user-he4ef9br7z from terminal to vim, or from browser to terminal, or from git output to whatever... and does your browser support notifications?
@@davidbasil3161 Well you don't need a mouse to manipulate clipboard. Tmux allows me to copy and paste in terminal, vim has its own copying mechanism.
I don't really know whether Vieb supports notifications, I keep all notifications on my computer off anyways.
Shiva Sutras. There need to a space in between two words.
Hey Luke how do you increase the Terminal font size?
It's a shortcut in st, my terminal emulator: th-cam.com/video/FJmm7wl4JUI/w-d-xo.html
st just looks like the chad terminal I've been looking for. Unfortunately I can't get it to run if I don't apply the solarized background patch. Without it I get a stacktrace mumbling about free(): invalid next size (normal): 0x0000557e4d401080. Oh and btw I'm on Debian with Gnome 3.
vim is no text editor, it's a minimal coding language made for editing text file.
"Euh actually in fact"
At ~ 2:30 you mention that the mouse does not work with vim which is not entirely true. You can enable mouse support on vim with `:set mouse=a`
Also, aside from the raw ergonomic / workflow issues, I have found almost 100% of mice are uncomfortable and cause severe cramping if used for an extended period of time. I have huge hands and I have yet to find a mouse that actually fits my hand.
david esktorp use an old mouse
Steelseries
>Steelseries
yeah probably a good size, but way too expensive. *I should've also indicated that I am a cheapskate.* lol
I suppose I should just bite the bullet and immediately plan on replacing the switches, since I know they use pussy Omron-brand junk switches in their mice.
I also have a old Logitech mx400 that I should repair. It was the closest thing to comfortable I've ever had. (same basic deal; junky switches went bad real fast and I never got around to replacing them)
I also have a 20 year old Microsoft Intellimouse that still works great, but the placement of buttons 4 & 5 are a deal breaker.
I would be fine with the performance of a typical $5-10 optical mouse, if only the mouse itself was larger and/or had a better shape.
hello, someone can tell me what desktop environment is he used?
@henry stevens no, it's not too late, thank you for your answer
@henry stevens i'am on centos 8. I have tried some tiling windows like i3 but, it seems doesn't work well
@henry stevens whats alternative for i3 do you suggest me to use?
@henry stevens keyboard key do not work, i also tried the keyboard shortcut but it seem not work
Fahrenheit? *UNSUSCRIBED*
1:14 wait what? Left handed people use mouse with left hand??
(ps: i am left handed)
Please make a Video about Kakoune.
How about syntax highlighting for coding ( I know a crutch) forpython and others? How do we impliment it?
I figured as much.. Used to use vi / vim in the 90's. Thanks for the reply. Just wanted to now if there was a pre-made addon for python highlighting I will check out...
how do i do 3d modeling with out the mouse xdddddd ?i wish i find a way btw
Parametric Design: www.openscad.org/
Could you cover your i3bar or whatever you use instead of it?
That was literally the last video I did.
Luke Smith Oh no. I am so sorry. I was off for a few days.
Vim Master Race!
Is it just me or there is too much transparency? to the level where it is hard to read the text...
Thank you
Great Videos. Great Direction. Subscribed.
Check easymotion vim plugin ^^
shiva sutras, sir ! 🙏
"Or, How I Learned To Stop Worrying And Love My Kinesis Advantage Keyboard"
Trackpoint.
Are the keyboard controls the same as Windows? I'm asking because if you know Windows keyboard controls would you know Vim's? Thank you.
Vi (on which vim is based) is older than Windows
Luke, do you believe God used VIm to create the Universe?
9p.io/wiki/plan9/mouse_vs._keyboard/index.html
Something to think about, even if I do agree with this video in concept.
Also see the first two answers here stackoverflow.com/questions/3458689/how-to-move-screen-without-moving-cursor-in-vim
Which OS is that?
It just works :wq
Hi what Linux do you use?
:set mouse=a
Why should I use Vim?
dap ? My instinct is to do d} - is that different somehow? Or perhaps {d} ?
lol I just use vim mouse mode and always am in insertion mode