4 ms·
Apropos of nothing in particular: a good way of spotting vim hipsters is that they don't know what ; does, because they never used t or f. They do however very
by to3m 12y ago
Apropos of nothing in particular: a good way of spotting vim hipsters is that they don't know what ; does, because they never used t or f. They do however very carefully use hjkl to move around, because the cursor keys are for squares ;)
- gfodor 12y agoEh, I've been using vim for 15 years and find it incredibly rare to repeat t or f's. Usually they're one-offs.
- yen223 12y agoExactly. The gain from remapping ':' to ';' far outweighs the losses from not being able to repeat finds
- fensipens 12y agoEh, I've been using vi{,m} for 15 years too and I `ftFT;,' things on a daily basis. Remove two `a' characters of the current line: fax;. Note: no mode change necessary Also, line editing in /bin/{,k,ba}sh -o vi without `ftFT;,' is a pain.
- function_seven 12y agoI remapped ; a long time ago (to ":", because I can't be bothered to hold down the shift key) because I rarely need to repeat a t/T/f/F motion. I typically already know how many times I need to invoke it (and use "3f)" for example), or I use a quick "/" followed by a couple of letters in the word I want to jump to.
- hrjet 12y agoThat's a great idea; never thought of it before. The only worry is that it is not going to work on remote systems out of the box, confusing my muscle memory.
- function_seven 12y agoYeah that's true. I have a lot of remappings and shortcuts in my vimrc file, and I struggle a bit when I'm using vanilla vim on another server. Thankfully, I'm usually able to snyc my ~/.vim/ and ~/.vimrc files to that machine if I'll be using it for more than just a one-off. But it is frustrating otherwise.
- e12e 12y agoThe main thing I've yet to figure out wrt vim is good keybindings with a Norwgian key layout. We have ø where ; lives, æ in place of ', no single (non-shift ) [ and ] due to å. and a composing accent/single/back quote. Loosing three full keys to actual letters is a though break ;) I know a lot of people simply switch to a US layout, but it's not really a great solution when freq uently also typing in Norwegian.
- swift 12y agoThat's exactly what I do and I find it to be a great improvement over the stock bindings. I also bind "q;" to behave like "q:". Unlike others in this thread, though, I do find the original behavior of ";" useful occasionally. I bind that behavior to ";;", which is still quite fast to type whenever I do need it.