113 reputation
116
bio website
location
age
visits member for 5 years, 4 months
seen Mar 9 at 4:07

Jan
12
comment control-left and control-right not working in vim, within a screen session
@romainl :-) it's also the bash commandline - because I'm often switching between bash and vim, that's probably more of a factor than the web. Bad bash.
Jan
11
comment control-left and control-right not working in vim, within a screen session
Brilliant! Both work. I found it also works if I set it in .screenrc (term xterm), But I guess least disruptive is wisest, so I've used your conditional map answer. BTW the binding is swapped, with 5D for left, 5C for right (the opposite one would expect). So I used: map <esc>[1;5D <C-Left> and map <esc>[1;5C <C-Right>
Jan
11
awarded  Scholar
Jan
11
accepted control-left and control-right not working in vim, within a screen session
Jan
11
comment control-left and control-right not working in vim, within a screen session
Thanks. It wasn't, I set it with term screen-256color in .screenrc, and restarting; echo $TERM confirmed the change. But it didn't solve the problem. I actually use b/w all the time - I was very surprised to find myself using ^left/^right. I blame the web.
Jan
11
asked control-left and control-right not working in vim, within a screen session
Apr
20
awarded  Famous Question
Jan
4
comment Change default zoom level of PDF files
Under Startup, in Preferences
Nov
16
awarded  Notable Question
Feb
26
awarded  Popular Question
Sep
5
revised Partition table corrupted (USB flash drive)
deleted 2117 characters in body; edited title; deleted 103 characters in body
Sep
5
revised Partition table corrupted (USB flash drive)
added 842 characters in body
Sep
5
comment Partition table corrupted (USB flash drive)
@Col I copied the faulty drive with dd. I also found you can cat /dev/sdc, and it will write the raw data - just like a file. I can see my data still! (so at least some of it is still there). I stripped off non-printable char, piped to less, and then searched for English words (" the " worked well, but "the" also appeared in random/executable data). So now my question is to how to recover this data - can repartition and preserve the data? I think I'd best start a new question, framed more directly using the info I now have - nobody will see it here.
Sep
5
comment Partition table corrupted (USB flash drive)
@Col OK, my case is unusual, because it hadn't been removed at that time (although a few weeks previously I removed the power supply from the USB hub it was connected to... maybe there was low power?). Also, I was only writing ordinary files, not partitioning it or anything (or does writing files also update the partition table?)
Sep
3
awarded  Commentator
Sep
3
awarded  Supporter
Sep
3
comment Partition table corrupted (USB flash drive)
Now I've got some reputation points now, so I can vote you up!
Sep
2
comment Partition table corrupted (USB flash drive)
OK thanks! (our messages crossed) I'll this out tomorrow, when I'm fresh.
Sep
2
comment Partition table corrupted (USB flash drive)
er, the syntax should be: dd if=/dev/sdc of=mybackupfile. I googled a bit, and it's amazing to me that pipes also work with this stuff, e.g. for compressing the backup. I know it's all data, but it's surprising that it's fast enough.
Sep
2
comment Partition table corrupted (USB flash drive)
Thanks, that's a good idea! But how do I copy a file with dd? The man page talks about "files"... oh, does /dev/sdc count as a "file"? So I can just copy the entire /dev/sdc to a convention file like" dd /dev/sdc mybackupfile ?