IRC Networks
Irc Logs Stats
Start date: 2007-09-27 02:48:27
Last update: 2008-10-24 20:19:38
Channels: 41
Logged Lines: 6230436
Size: 1822.71 MB
Powered by
Channel Info
Network: freenodeChannel: #vim |
Search in www.irclog.org
Log from #vim at freenode 2006-06-14
[00:17]<pyfz-e>How can I move forward an arbitrary number of bytes?
[00:17]<r2rfygv><num>l ?
[00:17]<r2rfygv>why do you say bytes and not chars?
[00:18]<pyfz-e>Because there's a problem I have in a file, 219976256 bytes in.
[00:18]<r2rfygv>Oh. I would not use vim. Make a little perl script or something and seek.
[00:19]<r2rfygv>That's a big file to put in a text editor.
[00:19]<pyfz-e>Heh.
[00:19]<pyfz-e>See, I'm thinking that Vim can handle anything at all!
[00:19]<r2rfygv>Well it can, but it's probably not the most appropraite.
[00:19]<rf->PilZ-E: that is the proper attitude
[00:19]<r2rfygv>Might be easier to xxd it.
[00:19]<pyfz-e>Actually.
[00:19]<pyfz-e>Vim isn't even opening it.
[00:20]<r2rfygv>??
[00:20]<cnzrjvx>heh, might want to disable syntax highlighting if you open a file that big
[00:20]<pyfz-e>When I open the file in vim, it says "new file", even though it's most certainly not.
[00:21]<r2rfygv>Is it >2gb?
[00:22]<pyfz-e>Yes.
[00:22]<r2rfygv>That might be why?
[00:22]<pyfz-e>Oh, no doubt.
[00:22]<pyfz-e>That's what I'd figgered.
[00:22]<r2rfygv>figured :)
[00:23]<pyfz-e>You dun like my cute spellinks?
[00:23]<r2rfygv>ass :p
[00:23]<pyfz-e>heh.
[00:23]<r2rfygv>You might try a newer vim build, that is built for something like that.
[00:24]<pyfz-e>OK, I may.
[00:24]<pyfz-e>Thanks for the advices.
[00:24]<r2rfygv>Do you need the data at that point?
[00:24]<pyfz-e>Here's what I'm trying to debug: both sort and split die in the middle, claming that there's an invalid multibyte sequence.
[00:25]<pyfz-e>And I just want to know what that sequence is.
[00:25]<pyfz-e>And the context.
[00:25]<r2rfygv>Ew. Gees. Try xxd or od and grep for the right location.
[00:25]<pyfz-e>And if any other lines are like it, etc.
[00:25]<pyfz-e>Perl is probably my best bet at this point.
[00:25]<r2rfygv>Or dd
[00:26]<pyfz-e>True.
[00:26]<r2rfygv>I remember I had something like that before. A 'null' in the middle of a 100GB file.
[00:26]<r2rfygv>causing our programs to crash.
[00:26]<pyfz-e>These are plain ol' Apache logs, though.
[00:26]<pyfz-e>Usually, free of that stuff, unless some kiddie is inserting it somehow.
[00:27]<r2rfygv>Oh, yeah would be interesting to see the result.
[00:27]<r2rfygv>Well is it the error or the access log?
[00:27]<pyfz-e>access
[00:27]<r2rfygv>I've seen all kind of crazy stuff in the error log. Access log sounds a little wierder.
[00:28]<cnzrjvx>could try bvi, its a hex editor with a vi-like interface :)
[00:28]<cnzrjvx>:0x183C0
[00:28]<cnzrjvx>or whatever
[00:28]<cnzrjvx>heh
[00:28]<pyfz-e>My choices are limitless!
[00:28]<pyfz-e>But, naturally, I reach for Vim first.
[00:28]<cnzrjvx>hehe
[00:28]<r2rfygv>kergoth: that looks cool. nice tool
[00:29]<cnzrjvx>yeah, its quite handy
[00:31]<pyfz-e>Hmmm.
[00:31]<pyfz-e>²3Q0051TT
[00:31]<pyfz-e>What the fuck is that?
[00:32]<r2rfygv>'squared' it looks like to me
[00:32]<pyfz-e>That's a string at the end of a line.
[00:33]<pyfz-e>And I cannot move the cursor onto it.
[00:33]<pyfz-e>And cat -vet does NOT detect it.
[00:33]<pyfz-e>Only vim.
[01:00]<amcr>Wed Jun 14 00:00:58 CEST 2006
[01:00]<amcr>vim -c ":q" 0.18s user 0.02s system 0% cpu 37.311 total
[01:00]<amcr>Wed Jun 14 00:01:35 CEST 2006
[01:04]<cnzrjvx>ouch, on a time vim -c ':q' here, i get 0.263s real, 0.230s user, 0.020s sys
[01:10]<amcr>http://phpfi.com/123633 <<< this is WEIRD behaviour.
[01:10]<amcr>s/u//
[01:10]<amcr>Or maybe it's not..
[01:11]<amcr>Can I still assume it's weird?
[01:13]<amcr>http://imho.esotericsystems.at/vim_70_strace.txt << This is the entire strace.
[01:16]<lnlnz>hi
[01:17]<lnlnz>is there anyway to remove new line char without entering insert mode?
[01:17]<mygmygw>Peper: J
[01:18]<lnlnz>thnx
[01:21]<lnlnz>and now the harded one: how can i disable arrow keys? i want to learn not to use them ;]
[01:21]<lnlnz>*harder
[01:47]<vyavjzy>tpope: around?
[01:47]<vljln>yes
[01:50]<zzfdzz>Peper: map <left> <nop> etc.
[01:51]<zzfdzz>+maybe additionally with an imap , dunno
[01:52]<zzfdzz>+maybe map! hmm
[01:53]<cnzrjvx>+i did that, only in normal mode though, since you cant exactly use hjkl to navigate in insert mode :P
[01:57]<zzfdzz>+kergoth: yeah, even so I personally do an <esc>movement i ...
[01:57]<cnzrjvx>+yeah, me too. taking your hands off the home row is teh devil ;)
[01:58]<zzfdzz>+it seems, two commands are needed to disable it everywhere. hm or?
[01:58]<ugfygc>+ehh... <c-[>
[01:58]<zzfdzz>+kergoth: yep, exacly :)
[01:59]<ugfygc>+there's always <c-o><single normal mode movement command>
[01:59]<zzfdzz>+unlink: yeah, maybe to remember that tip...:)
[02:00]<zzfdzz>+yet, esc on the caps-lock is very fast..
[02:01]<cnzrjvx>+true, but rarely do i only do one normal mode movement command. insert mode is the temporary state, not normal :)
[02:02]<ugfygc>+put control on caps lock, it's more useful
[02:02]<cnzrjvx>+ACTION fondly recalls working on sun sparc boxes, without capslock at all
[02:02]<zzfdzz>+esc is one of the most used keys, so why should I want it 'far' away. well, you as c-[ user..
[02:03]<ugfygc>+c-[ becomes much easier to type, as do c-n, c-p, c-r, etc...
[02:03]<saxye0>+How can you delete by the line? Instead of holding the 'Del' key to delete a bunch of info..
[02:03]<ugfygc>+dd
[02:03]<ugfygc>+:h d
[02:04]<saxye0>+ah, awesome







