4 ms·
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 , r
by h2s 14y ago
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.
- danneu 14y agoI'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.
- goldfeld 14y agoI 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 http://github.com/goldfeld/vim-seek
- danneu 14y agoCool! Until I found easymotion.vim, I was sort of doing a poor man's vim-seek with `/` and two chars.
- mats_rauhala 14y agoFor 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,.
- dakr 14y agog; 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.
- dwb 14y agoI have the spacebar as my <leader>: doesn't clobber a useful mapping and much easier to hit than '\'.
- edanm 14y agoI use ; quite a lot after "f"orward, but I rarely use ,. Just doesn't come up much in every-day work.
- jcurbo 14y agoI 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)
- thelibrarian 14y agoIt doesn't clash with anything at all, as it is the default <leader>.
- jcurbo 14y agoAh, I had no idea. I saw it explicitly defined in someone's vimrc and thought, hey that's a good key to use.
- grn 14y agoUsually 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.
- pseut 14y agoMaybe this page: https://sites.google.com/site/steveyegge2/effective-emacs https://sites.google.com/site/steveyegge2/effective-emacs
- Arelius 14y agoI 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.
- grn 14y agoNo, if I remember correctly it was somewhere on http://emacswiki.org http://emacswiki.org which is a great resource by the way.
- staticshock 14y agoOn a related note, I think that f and t become ever more awesome if you use fanfingtastic: https://github.com/dahu/vim-fanfingtastic https://github.com/dahu/vim-fanfingtastic
- brianhc 14y agoWhat is the default behavior for ","?
- setrofim_ 14y agoIt's ";" in reverse, i.e repeat the latest f,F,t or T backwards.