Reputation
7,481
Top tag
Next privilege 10,000 Rep.
Access moderator tools
Badges
18 59 108
Impact
~1.2m people reached

Mar
2
asked How can I use my local copy of Vim on a server?
Mar
2
comment Is there an easier-to-reach mapping for ESC in Vim?
I know that Control + [ does the same thing, but that's not really easier for me.
Mar
2
asked Is there an easier-to-reach mapping for ESC in Vim?
Mar
2
comment How can I batch rename files in bash?
This isn't the most concise way, but I do appreciate the readability and explanation. If I'm going to do this from the command line, I'd rather type what chrish shows, but if I were saving it as a script, I'd definitely use your way for readability.
Mar
2
comment How can I batch rename files in bash?
Nice - the most concise way so far.
Mar
2
accepted How can I batch rename files in bash?
Mar
2
asked How can I batch rename files in bash?
Mar
2
comment How do I change until the next underscore in VIm?
It's great to know that I can define my own word boundaries, but after some thought, I think the best solution is ct_ as doubleface says below, since it's concise and is default vim behavior.
Mar
2
comment How do I change until the next underscore in VIm?
ct_ is exactly what I wanted. This has now become part of my regular workflow. Thanks!
Mar
2
accepted How do I change until the next underscore in VIm?
Mar
2
comment In Vim, what's an elegant way to grab output from the command-line?
I also didn't know you could manually set registers like let @a = 'foo'. One cool idea would be, after doing a search and replace, you could save the search term to a register for pasting elsewhere by doing let @a = @/ - "make the a register contain what the / register contains, namely, my last search."
Mar
2
comment In Vim, what's an elegant way to grab output from the command-line?
Also - I didn't know about the system call. That's awesome!
Mar
2
comment In Vim, what's an elegant way to grab output from the command-line?
After looking at the help and experimenting, I see that 1) :r is short for "read" (so you can type out 'read' or just 'r' and it's the same command), and 2) doing :r path/to/foo.txt will insert the contents of that file after the cursor.
Mar
1
comment In Vim, what's an elegant way to grab output from the command-line?
Awesome! Thank you!
Mar
1
accepted In Vim, what's an elegant way to grab output from the command-line?
Mar
1
asked In Vim, what's an elegant way to grab output from the command-line?
Feb
23
revised How to search for one of two similar strings in Vim?
deleted 187 characters in body
Feb
23
comment How to search for one of two similar strings in Vim?
Ah! I wasn't escaping the parentheses when I tried this. Interesting - I thought I only had to escape literal characters.
Feb
23
accepted How to search for one of two similar strings in Vim?
Feb
23
comment How to search for one of two similar strings in Vim?
@molsecules - right, thanks. I updated the question.