3,868 reputation
73682
bio website
location
age
visits member for 5 years
seen 16 hours ago

I started learning web design to support my efforts as a singer/songwriter. I'm still doing that, but these days my actual job involves building intranet resources as well. My skillset is PHP, HTML, CSS, and Javascript (I'm a big fan of jQuery).


Sep
16
comment How can I add line breaks in an XML file from the Unix command line?
Oh wow, I didn't know about xmllint. Thanks!
Aug
31
comment How can I tell what syntax and indentation rules Vim is using on a particular line?
Now that I think about it, I suspect that BOTH the PHP and HTML rules are being applied.
Aug
31
comment How can I tell what syntax and indentation rules Vim is using on a particular line?
@digitxp - I don't have a /syntax/javascript.vim currently. I do have a indent/javascript, but that just decides when to indent or unindent, not how many spaces to use for an indent. And, as I said, a separate JS file gets indented with my default of two spaces.
Aug
26
comment Can I use Vim editing mode on the command line without losing recursive history search?
That's interesting, though - I frequently use search as a movement in Vim. I guess I can't use it to move within the command I'm currently editing, since it's pegged to searching history, eh?
Aug
26
comment Can I use Vim editing mode on the command line without losing recursive history search?
A hard choice! garyjohn shows a Vim way to do it, and JdeBP shows how to get the keybinding for Ctrl+R back! I'm going to play with both methods and accept an answer later. I'll decide based on 1) which method seems easier to me and 2) which gets more upvotes. Thanks to both of you!
Aug
26
comment Can I use Vim editing mode on the command line without losing recursive history search?
My muscle memory blesses you!
Aug
26
comment Can I use Vim editing mode on the command line without losing recursive history search?
Yes, zshell is the same. Thanks!
Jul
1
comment How can I simulate a slow machine in a VM?
Ha! Interesting idea to buy an actual machine. Since the whole idea is to emulate an old computer, buying an old computer is a pretty cheap option. :)
Jun
24
comment In bash, how can I rename a file without repeating the path?
Cool! I think Darth's brace expansion method is easier, but this is exactly what I asked for.
Jun
16
comment In bash, how can I rename a file without repeating the path?
Oh, right! I love brace expansion but I didn't think to use it here. :) Thanks!
Apr
5
comment Despite the fact that GIT does NOT store file deltas, can you still rollback to previous file versions (unlimited times?)
Chris, you seem to have a pretty good handle on Git internals. Any chance you might take a swing at this? stackoverflow.com/questions/5176225/…
Apr
5
comment Despite the fact that GIT does NOT store file deltas, can you still rollback to previous file versions (unlimited times?)
Also, because Git uses snapshots of files rather than deltas, going back a long way in history is actually easier. Imagine you need to see a file from 20 commits ago. With deltas, you need to undo 20 changesets; with snapshots, you just grab the right snapshot. The longer your history, the bigger the advantage. And if you want to see the diff between the current version and that one, it's just a single diff, rather than having to decide what's been done, undone, redone, etc.
Mar
22
comment How can I make chown work recursively?
Thanks for the thorough explanation!
Mar
2
comment In Vim, what is Control + W for in insert mode?
Yep! This was in my .vimrc, which I intially got from a friend and have been tweaking since: imap <C-w><C-w> <esc><C-w><C-w> So he specifically mapped hitting "control + w" twice in insert mode to moving to the next window.
Mar
2
comment In Vim, what is Control + W for in insert mode?
@Mikel - updated question.
Mar
2
comment How can I use my local copy of Vim on a server?
Pulling the latest with cron is a neat idea. I guess each user on the server could have their own .vimrc synced to their home directory...
Mar
2
comment Is there an easier-to-reach mapping for ESC in Vim?
Interesting. What are the cases where CTRL-C is different?
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
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.