News for hackers. Stuff that matters.
Re:Vim After 11 Years by h2s on Tuesday February 19, 2013 @12:25PM (#5245599)
Lots of people seem to declare ; or , to be useless keys and remap them. They're two of my most used movement keys in certain circumstances.

I used to have , remapped to <leader> but switched back when I realised what I was missing out on. I'd advise anybody else to reconsider if they've made the same mistake I did.

Re:Vim After 11 Years by grn on Tuesday February 19, 2013 @04:42PM (#5247251)
Usually I use a method that I found on some Emacs-related website. It said to use text search for navigating around the file. That's why I use / pretty often. I use f, t, and related movements as arguments to actions.
Re:Vim After 11 Years by pseut on Wednesday February 20, 2013 @03:19AM (#5249469)
Re:Vim After 11 Years by Arelius on Wednesday February 20, 2013 @03:36AM (#5249503)
I love using search interactive to navigate text. But however, getting the point to the right spot after that still feels cumbersome, in particular, moving to the beginning of the matched word doesn't seem easy.
Re:Vim After 11 Years by grn on Wednesday February 20, 2013 @02:28PM (#5252655)
No, if I remember correctly it was somewhere on http://emacswiki.org which is a great resource by the way.
Re:Vim After 11 Years by danneu on Tuesday February 19, 2013 @12:40PM (#5245702)
I've had ; mapped to : forever.

Is there a use for `;` I'm missing out on? `;` just seems to be for stuff like "`fp` -- Oh wait, I didn't see all the p's between my cursor and the p I wanted. ; ; ; ;."

Now I use easymotion.vim which obviates that scenario.

Re:Vim After 11 Years by goldfeld on Tuesday February 19, 2013 @01:01PM (#5245860)
I created vim-seek exactly for this reason, it's like f but takes always two characters, way faster than easymotion within the line (though I still use easymotion for longer distances) http://github.com/goldfeld/vim-seek
Re:Vim After 11 Years by danneu on Tuesday February 19, 2013 @02:09PM (#5246350)
Cool! Until I found easymotion.vim, I was sort of doing a poor man's vim-seek with `/` and two chars.
Re:Vim After 11 Years by mats_rauhala on Wednesday February 20, 2013 @01:03AM (#5249202)
For me it's often fp <something> ;. ;. ;. ;.

For example if I have a longer line I would like I could do something like f,a<cr><esc>k,.k,.k,.k,.k,.k,.

Re:Vim After 11 Years by dakr on Wednesday February 20, 2013 @10:47AM (#5251042)
g; will move the cursor to the line of your last edit (and further through your edit history). I find it useful as a move command but also use it to remind myself of what and where my last edit was.
Re:Vim After 11 Years by dwb on Tuesday February 19, 2013 @12:48PM (#5245769)
I have the spacebar as my <leader>: doesn't clobber a useful mapping and much easier to hit than '\'.
Re:Vim After 11 Years by staticshock on Tuesday February 19, 2013 @09:29PM (#5248619)
On a related note, I think that f and t become ever more awesome if you use fanfingtastic: https://github.com/dahu/vim-fanfingtastic
Re:Vim After 11 Years by jcurbo on Tuesday February 19, 2013 @04:39PM (#5247228)
I use \ for <leader>, doesn't seem to clash with anything I do on a regular basis (but I'm not a power user by any means)
Re:Vim After 11 Years by thelibrarian on Tuesday February 19, 2013 @07:28PM (#5248159)
It doesn't clash with anything at all, as it is the default <leader>.
Re:Vim After 11 Years by jcurbo on Wednesday February 20, 2013 @09:05PM (#5254904)
Ah, I had no idea. I saw it explicitly defined in someone's vimrc and thought, hey that's a good key to use.
Re:Vim After 11 Years by edanm on Tuesday February 19, 2013 @04:18PM (#5247100)
I use ; quite a lot after "f"orward, but I rarely use ,. Just doesn't come up much in every-day work.
Re:Vim After 11 Years by brianhc on Wednesday February 20, 2013 @01:13AM (#5249238)
What is the default behavior for ","?
Re:Vim After 11 Years by setrofim_ on Wednesday February 20, 2013 @04:13AM (#5249583)
It's ";" in reverse, i.e repeat the latest f,F,t or T backwards.