10 ms·
"It’s so useful that I’ve bound it to ; (and nobody remembers what ; does anyway)." The original binding of ; is super useful, and I would argue it should not
by pmoriarty 12y ago
"It’s so useful that I’ve bound it to ; (and nobody remembers what ; does anyway)."
The original binding of ; is super useful, and I would argue it should not be rebound.
; repeats the last f, t, F or T command.
There's also , which is the same as ; but in the opposite direction.
- sooheon 12y agoI agree. I initially found many recommendations to bind "," as leader, and it was convenient, but after learning what ";" and "," do, I've changed my leader to <space>.
- pmoriarty 12y agoSPACE is good as leader, and also as : But I've found it to be most useful as page-down (with BACKSPACE as page-up).
- deckiedan 12y agoI'm also using <space> as my leader. In case anyone else wants to try it, and struggles to make it work, I had to do the following to make it work: map <space> <leader> rather than simply setting mapleader to space directly. If someone else knows why, I'd be interested to know!
- lucb1e 12y agoWhat's a leader? Googling some, it seems to mean a backslash in the vimrc... but I don't really understand what you mean.
- tsm 12y agoIt's a way of namespacing commands—if you install NERDCommenter, for example, <leader>cc comments out the current line (whereas cc by itself changes the current line). It's traditionally bound to backspace, which is actually-free, but many people bind it to keys that are free but never used personally.
- lucb1e 12y agoYes! Glad I'm not the only one who uses ;. The only thing I never understood was why ; doesn't go beyond the current line (n does). Is there a way to make it?
- placeybordeaux 12y agoI have always just used / and n N. What is the difference with f and t?
- csandreasen 12y agof jumps to the next occurrence of a particular character on the same line. F jumps to the previous. t and T do the same thing, but jumps to the character immediately before. For example, if you were at the beginning of the following text: foo(bar, baz); Typing f,dt) would change it to: foo(bar);