279 reputation
18
bio website
location
age
visits member for 1 year, 2 months
seen 8 hours ago

I am a software engineer at Avago Technologies. I enjoy reading, playing piano, and dancing.


19h
comment Standardize \n and \r in Vim's search/replace syntax
@FDinoff I'm matching the only two range expressions I use at the moment. It doesn't look like it would be that hard to match the others, though, so I'll update as I need updates.
1d
answered Standardize \n and \r in Vim's search/replace syntax
1d
comment Standardize \n and \r in Vim's search/replace syntax
Never mind, my edit was rejected. I still think you deserve the core credit for figuring out this solution, but I'm going to post my own answer just so that the full implementation can get visibility.
1d
comment Standardize \n and \r in Vim's search/replace syntax
@kinkijuf I wasn't elaborating on my question; I was taking the answerer's suggestion and contributing (as per his own suggestion) my version of the regex used to determine whether or not to perform the replacement. This addition definitely doesn't belong in my question, and since the main part of the solution was the trick of using c_CTRL-\_e with getcmdline() =~# , not the details of the regex used, I don't think it deserves its own answer.
1d
comment Standardize \n and \r in Vim's search/replace syntax
I've added the regex I'm using in my .vimrc, with an explanation.
1d
suggested suggested edit on Standardize \n and \r in Vim's search/replace syntax
1d
comment Standardize \n and \r in Vim's search/replace syntax
...fancy. <C-\>e is a pretty cool feature I didn't know about.
1d
comment Standardize \n and \r in Vim's search/replace syntax
@Heptite I'm not asking for the Vim codebase to be changed; I'm wondering if it's possible to get this behavior via some form of customization, such as a plugin, possibly making use of github.com/coot/CRDispatcher.
1d
revised Control Harman Kardon AVR with WiFi Android app only
added 176 characters in body
1d
accepted Searching all versions of a file in the undo tree in VIM
1d
comment Searching all versions of a file in the undo tree in VIM
Idea pitched, but no response so far. bitbucket.org/sjl/gundo.vim/issue/45/search-through-diffs
1d
comment Don't load undo file if it's too large in Vim 7.3+
Really ought to have been using this anyway--thanks for the suggestion. I'm accepting the other answer just because it's more specific to the particular problem I had, but +1 to yours as well.
1d
accepted Don't load undo file if it's too large in Vim 7.3+
1d
asked Standardize \n and \r in Vim's search/replace syntax
Apr
10
comment Don't load undo file if it's too large in Vim 7.3+
Only tangentially related, but here's a shout-out to a pretty cool script (not mine, but I ran it as soon as I found it) that does something Vim should really have some kind of built-in capability for: github.com/doy/conf/blob/master/bin/clean-vim-undo
Apr
10
asked Don't load undo file if it's too large in Vim 7.3+
Mar
27
comment Is there any way to get bash to have syntax highlighting like fish?
As I said, it's not "syntax" highlighting. Those are highlighting the output of the ls command based on file type, which has nothing to do with shell syntax.
Mar
26
awarded  Critic
Mar
26
comment Is there any way to get bash to have syntax highlighting like fish?
The original question is actually quite clearly about actual syntax highlighting. This is shown both by the screenshot of the fish shell and the final sentence: "I want to highlight the actual text that is entered at the terminal. The commands, parentheses, quotes, etc."
Mar
25
comment Is there any way to get bash to have syntax highlighting like fish?
It looks like you're answering how to set up syntax highlighting in editors, not in the shell. The ls-colorization isn't even "syntax" highlighting.