Reputation
5,730
Top tag
Next privilege 10,000 Rep.
Access moderator tools
Badges
11 50 99
Impact
~736k people reached

Feb
1
comment What Vim features do you use?
Note that the % is where to do the substitution - % means "the current file." If you visually highlight some lines and type :s, you can do a substitution just in that selection.
Feb
1
comment What Vim features do you use?
That works if your cursor is on the beginning {. If you're inside the block, you can do =i{, for "indent inside the curly braces."
Feb
1
revised What Vim features do you use?
added more ways to use = indenting
Feb
1
comment What Vim features do you use?
@Frew - yep. Also, if you add vmap <Tab> >gv and vmap <S-Tab> <gv to your .vimrc, you can indent and unindent with Tab and Shift-Tab, respectively, AND it will go right back into visual selection mode so you can indent or unindent further.
Feb
1
asked How can I switch from forward to backward search in Vim?
Feb
1
revised How can I discard my undo history in vim?
removed bounty note
Jan
25
comment Vim golf: Fix a broken CSV
Thanks for your help! I accepted Dennis Williamson's answer because it's shorter, but both of you gave good working solutions. I'll ask you the same question I asked him: I didn't know you could pass the results of :g to a substitution - do you know where I can read more on this?
Jan
25
comment Vim golf: Fix a broken CSV
Great! Two things: I didn't know you could pass the results of :g to a substitution - do you know where I can read more on this? 2) Does the | separator here work like it does in bash - pipe the output of the first command to the input of the second?
Jan
25
accepted Vim golf: Fix a broken CSV
Jan
25
accepted What are the practical limits on file extension name lengths?
Jan
25
revised How can I discard my undo history in vim?
added 166 characters in body; edited tags
Jan
21
comment Vim golf: Fix a broken CSV
Actually, I think that it is OK to do this on every line, in which case I can just run my macro on the whole file. But I'm still interested in seeing an answer.
Jan
21
asked Vim golf: Fix a broken CSV
Jan
14
asked What are the practical limits on file extension name lengths?
Jan
12
revised ZSH - output whole history?
deleted 101 characters in body
Jan
12
comment ZSH - output whole history?
Great! That's an annoying default for me, though, so I'm adding this to my aliases file: alias history="history 0"
Jan
12
accepted ZSH - output whole history?
Jan
12
asked ZSH - output whole history?
Dec
24
awarded  Popular Question
Dec
22
revised Vim - select text highlighted by search?
added 9 characters in body