(no title)
drtz | 2 years ago
It's just so unintuitive and trying to teach it in a "here are some good shortcuts that will save you time" way was a near-total waste.
vim is the closest any editor comes to interfacing directly with my brain. Once you learn to make your neurons fire in the right way to move the cursor to the right spot, it's easy and there's no better way to edit code. Describing the neuron firing order to someone else, though, is futile.
It's like learning to to use your fingers to pick something up for the first time as a kid: you just have to try enough times until it sticks.
arcanemachiner|2 years ago
It's funny you mention that. Just today, I had this moment where I realized that if someone asked me which key letters are used to move up/down/left/right, I'd have to pause and think about it.
I've been using Vim for years. Like, my index finger rests on the down key, so J is down. I think? And so on... My middle finger rests on the up key, so K goes up? Do I actually have to move my index finger to go left? What is my pinky doing most of the time?
It's just funny how all this stuff is burned into my brain but I wouldn't even be able to tell someone the basics without a keyboard in front of me.
Lio|2 years ago
When I first switched to Colemak, around 2010, I remapped the movement keys so that they were in the same physical location as hjkl on qwerty.
Then I realised I'd lost compatibility with other readline based software. So I just learned to use the new, not particularly ergonomic, positions under Colemak.
At this point it's almost always from muscle memory now and couldn't tell you what I press half the time.
Vim is like the Great Glass Elevator, it has a button for moving in every direction and using it since the 90s has been like learning to play a musical instrument.
Izkata|2 years ago
Nope, j is down. J combines the current line with the next line, reducing whitespace between to 1 space.
Back when I first figured out what J was doing (having typo'd it regularly) I thought it was useless, then one day I just started reflexively using it when manipulating function arguments.
Likewise, k is up, K looks up the word under the cursor in a man page.
fragmede|2 years ago
byttemos|2 years ago
H = the leftmost key, so left L = the rightmost key, so right J = jeet (yeet), so down K = klimb (climb), so up
I look forward to the day this is just burned into my subconscious, but until then, this works I suppose
tylerhou|2 years ago
gsich|2 years ago
chongli|2 years ago
_the_inflator|2 years ago
Lunch is !work for me.
wycy|2 years ago
hnlmorg|2 years ago
Aperocky|2 years ago
To know what modal editing is and understand that first is going to help - but then your learning session is over like that without teaching any "tricks".
erfgh|2 years ago
Also, in the GUI version of vim you have scrollbars, toolbar, and the standard keyboard shortcuts work, too. So you can use it like any other editor.
quickthrower2|2 years ago
ecf|2 years ago
TheGreatCabbage|2 years ago
fuzztester|2 years ago
You don't need to pick up a lot of keybinds in order to be fairly productive at text editing in vim.
The extra stuff will just make you more productive, maybe asymptomatically.
FreshStart|2 years ago
slim|2 years ago
unknown|2 years ago
[deleted]
linsomniac|2 years ago
vram22|2 years ago
And "vim" is pretty close to "vm" for virtual machine that runs that vimcode, or bytecode :)
gjvc|2 years ago