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
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 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.
> :[range]g[lobal]/{pattern}/[cmd] (default 'p')
This is the origin of grep, i.e. g/re/p!
http://en.wikipedia.org/wiki/Grep