3,071 reputation
11635
bio website dotancohen.com
location
age 36
visits member for 3 years, 1 month
seen 19 hours ago

Nov
24
comment Why isn't VIM storing macros across sessions?
Thanks. .viminfo was in fact owned by root.
Nov
23
comment Why isn't VIM storing macros across sessions?
Thanks, romainl. In fact, I thought that I checked everything relevant but I did not check .viminfo ownership. There is always something additional relevant!
Nov
23
comment Why isn't VIM storing macros across sessions?
@Ingo: Please post that as an answer. .viminfo was actually owned by root for some reason. Thanks!
Nov
23
comment Vim clobbering scrollback buffer outside of screen
Thanks. Mintty it is.
Nov
22
comment Vim clobbering scrollback buffer outside of screen
echo $TERM is showing me xterm, surely this cannot be! I commented out everything related in .bashrc, and still I see this. Running cygcheck -c I see that mintty is in fact installed, but how does one check which terminal is in fact running?
Nov
22
comment Vim clobbering scrollback buffer outside of screen
Thanks Heptite, removing that line did fix VIM inside screen, but it is still broken outside screen. I'm using real VIM, not VIM-tiny. I updated the question to reflect this.
Nov
21
comment Vim clobbering scrollback buffer outside of screen
@Heptite: Really? How should I set them, then? From all that I've been able to google, that is the canonical solution.
Nov
20
comment X11 Style Copy on Select in Windows?
As a Linux user who uses True X-Mouse Gizmo when on Windows, I find AutoClipX to be far superior. Thank you!
Nov
18
comment Browser with its own hosts file?
It looks to me that you need a browser with its own IP stack.
Oct
31
comment Context-specific remap
Thank you, I will take a look at those plugins.
Oct
31
comment Abbreviations override in comments and quoted text
Thank you.‎‎‎‎‎‎
Oct
30
comment Abbreviations override in comments and quoted text
Hi, please excuse the late question. Why is the function name preceded with s:? I'm just trying to learn from the gurus. Thanks.
Oct
26
comment How to escape vim keywords in mappings?
Very cool, thank you! There are so many ways to fry eggs with VIM!
Oct
26
comment How to escape vim keywords in mappings?
Thank you Romainl! Always good to learn from you!
Oct
26
comment How to escape vim keywords in mappings?
Thank you, that ties in with the mention of "very magic" in the other thread. I also had to double up the `` escape characters on the pipes as well. Please post your comment as an answer so that I could accept it. Thanks!
Oct
26
comment How to have ESC also cancel CAPS if CAPS is enabled?
Great, thanks. I had intended to google that later once I get some other issues taken care of.
Oct
26
comment How to have ESC also cancel CAPS if CAPS is enabled?
Changing that to a mapping was an exercise in experimentation. Here is the format, for those will will follow in my footsteps: noremap <leader>s <Esc>:s/\v<select>\|<from>/\U\0/g. Only the pipes need backslashes, in contrast to all the info that I was finding on Google which suggested that the `, <` , and > characters should all be escaped. I wonder if that is due to my environment or other settings, though I don't see anything relevant.
Oct
26
comment How to have ESC also cancel CAPS if CAPS is enabled?
The following form is perfect: :s/\v<where>|<select>|<delete>|<from>/\U\0/g. Thanks! As is obvious, I will select trideceth's solution as it does answer the question and it much broader is scope. But I do love this trick and I see this becoming a common tool in my box. Thank you Romain!
Oct
26
comment How to have ESC also cancel CAPS if CAPS is enabled?
Yes, it is too brutal and I've had to trim it down quite a bit. I'm now trying to get it to only match whole words but VIM regex is a bit different than PCRE. However, it is a great tool to have for the common one-liner SQL keywords such as INSERT, INTO, TABLE, WHERE, SELECT, DELETE, FROM, LIMIT, ORDER, BY, ASC, DESC, SET, UPDATE. As soon as I've got this whole-word issue sorted out I'm mapping it to leader-s. Thanks!
Oct
26
comment How to have ESC also cancel CAPS if CAPS is enabled?
Thanks, I see your edit that even mentions how to do that. I'm fiddling with it now, thank you!