3,617 reputation
63476
bio website
location
age
visits member for 4 years, 9 months
seen Apr 11 at 18:53

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).


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
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!
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
comment How to search for one of two similar strings in Vim?
@molsecules - right, thanks. I updated the question.
Feb
21
comment Macbook : Replacing RAM while on hibernate?
Really? Is it more of a bother to have a broken computer? As infrequently as you upgrade RAM, why not take the time to turn the thing off? I mean seriously, if I were doing this, I'd be careful about static electricity. No way would I have actual electricity running through my $1,000 machine.
Feb
17
comment Using JSLint with Syntastic in Vim
Yep - that works! Thank you.
Feb
15
comment Is it possible to not trigger my normal search highlighting when using search as a movement?
I don't quite get it. What do you type and what happens?
Feb
14
comment Is it possible to not trigger my normal search highlighting when using search as a movement?
Actually, I've got an even shorter shortcut for "clear my current search highlighting": I just hit enter if I'm in normal mode. This line is in my .vimrc: :nnoremap <CR> :nohlsearch<CR>/<BS>. It clears the highlighting, starts a new search, and then backspaces to abort the search (thereby clearing the search bar so things look normal again.) This is pretty easy, but I'm so lazy that if I could avoid even having to hit enter, I would like that. :)
Feb
11
comment How do I change until the next underscore in VIm?
That is fantastic! Thank you!
Feb
10
comment How do I change until the next underscore in VIm?
I do want search terms to be highlighted most of the time; just not when I use search as a movement. (I also just asked this question: superuser.com/questions/244042/…)
Feb
8
comment Vim lint check - only show message if there's an error
When I do this, I don't see error output, either. Do you?
Feb
8
comment How can I switch from forward to backward search in Vim?
Hmmm, and apparently, ? or / followed by the up key cycles through a common history for the two. I thought each had their own history.
Feb
8
comment How can I switch from forward to backward search in Vim?
Wow, that was way easier than I thought. :) Thanks!
Feb
1
comment What Vim features do you use?
Note my comment below, and you won't even have to type gv. :)
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
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.