News for hackers. Stuff that matters.
Re:Everything I Missed in "Vim After 11 Years" by onedognight on Tuesday March 05, 2013 @11:20AM (#5325335)
> But have you ever heard of :g//? I hadn’t.

> :[range]g[lobal]/{pattern}/[cmd] (default 'p')

This is the origin of grep, i.e. g/re/p!

Re:Everything I Missed in "Vim After 11 Years" by arethuza on Tuesday March 05, 2013 @11:31AM (#5325422)
My first reaction to that was "surely grep is older than vi" - but the grep wikipedia page points out that the g/re/p pattern dates all the way back to ed - which vi extended

http://en.wikipedia.org/wiki/Grep

Re:Everything I Missed in "Vim After 11 Years" by ajtaylor on Wednesday March 06, 2013 @06:28AM (#5330588)
Interesting timing: I was reading through Practical Vim last week and came across a sidebar describing the origins of grep. Why do programmers love their acronyms so much?
Re:Everything I Missed in "Vim After 11 Years" by sliverstorm on Tuesday March 05, 2013 @11:45AM (#5325520)
Or my favorite, :g/re/d
Re:Everything I Missed in "Vim After 11 Years" by grayrest on Tuesday March 05, 2013 @11:46AM (#5325523)
On EasyMotion:

    " let g:EasyMotion_leader_key = '<Space>'
    let g:EasyMotion_keys = 'abcdefghijklmnopqrstuvwxyz'
    let g:EasyMotion_mapping_f = '<space>'
    let g:EasyMotion_mapping_w = '<space><space>'
This lets you type space then a character then jump. Space space jumps words. I'm fine with my leader on \. I had my space toggle folds but easymotion is a MUCH better use of the key. I also remap 's' to surround.vim keybinds:

    ""s/S is pretty useless. :help text-objects
    nmap s      ysi
    nmap S      ysa
    nmap s$     ys$
    nmap sv     gvs
Re:Everything I Missed in "Vim After 11 Years" by mfonda on Tuesday March 05, 2013 @11:35AM (#5325458)
This is one of the things I love about vim. After 11 years, there's still so many new things to learn and improve your experience. I've been using vim just over a year now, and it seems every week or so I pick up a new trick that significantly improves my workflow. I had always remapped ; but after learning its actual purpose here, I may reconsider.
Re:Everything I Missed in "Vim After 11 Years" by jlgreco on Tuesday March 05, 2013 @11:14AM (#5325302)
I have similar thoughts towards Vundle. It seems to solve a problem that simply doesn't exist for me with Pathogen, and is slightly more annoying to boot.
Re:Everything I Missed in "Vim After 11 Years" by dsuriano on Tuesday March 05, 2013 @01:17PM (#5326264)
I'm a little jealous of the CSS Color Plugin. Wish TextMate had something like that.