Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
stop68026ywhat did this person drunk and smoked after his lobotomy when he thought this bad joke?
-
@stop as a stoner, I refuse to believe this was induced by herb.
Besides...I can still operate Vim while under the influence.
H is the leftmost of the four and goes left.
L is the rightmost key and goes right.
J is shaped like a downward arrow and goes down.
K and up are the two things still left and a little bit of logical thinking allows matching them with ease. -
athlon172466y@ilPinguino WHO THOUGHT THAT WAS A GOOD IDEA?! You know what else is shaped like arrows on the keyboard? Arrows!
-
athlon172466y@gathurian it’s like saying “yeah, our cars are generating more pollution than others, because back in the day there was no such thing as catalytic converter”
Maybe I’m just complaining, or I don’t get Vim’s idea, but why on earth would anyone use it? -
@athlon I mean, you CAN use the arrow keys in vim now if you want to.
I just like that you dont have to move your hand away from the 'baseline' of the keyboard (asdf...) to move around. -
Fenix5986y@athlon then you did not got the idea of vim. @gathurian is right with not having to move your hands when using HJKL
-
Fabian10136yMight be a noobish question, but after reading the post my only question is: How do you actually type?
-
@Fabian Vim has several modes. Your keyboard only 'works' if you're in the 'insert' mode (usually entered by pressing 'i').
If you want to move around with HJKL you press 'Esc' (most avid vim users remap that to Caps). Your keyboard input wont be written to file anymore. There's also Visual mode (v/V) to highlight text and Replace mode (r) to replace whatever is under the cursor at the moment. -
gruff5526y@gathurian yeah but you still need to press escape to get out of insert mode, unless there is some other way I don’t know
-
@gruff Yeah, Esc, or as I said, most people who use vim a lot have mapped that key to something more accessible, like Caps Lock
-
Parzi86636yJust... skip the hassle and use nano.
^_0.0 - beginning of file
^W - save (Write out, some versions also support ^S)
^C - Cursor position
^X - eXit
this is easier to remember (AND ALWAYS AT THE BOTTOM OF THE FUCKING SCREEN) -
Fabian10136y@Parzi When I try Ctrl+S , it says "[ XOFF ignored, mumble mumble ]". I don't know what "XOFF" is, but the rest is a funny little reminder that Ctrl+S doesn't work. The next best thing would be to… just make it work.
Related Rants
Vim is super easy, guys! You don't use arrows to navigate around the text, that's too obvious! Instead you use HJKL keys, because it goes Hup, Jleft, Kright and Ldown. You can also use B to go Beginning and E to go to End of the word, oh and W to go to the WstartOfNextWord.
joke/meme
vim
just wanted to learn it