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-05-20
[00:00]<z0wjz>ooooh! whoa!
[00:00]<z0wjz>omg!
[00:00]<z0wjz>vim 7 is OUT
[00:00]<z0wjz>whoooo hooo!
[00:00]<dgndja>o.o
[00:01]<z0wjz>mnemoc, yeah www.vim.org is sorta like google in this channel as we both just demonstrated :)
[00:01]<z0wjz>should probably go there first
[00:05]<grppgyg>hi
[00:05]<grppgyg>how to set Allman/BSD style indenting in vim?
[00:06]<grppgyg>is there any preset for cinoptions or I'll have to write it by own?
[00:07]<lxzzcvuzn>i doubt anyone knows what that means in terms of indenting
[00:07]<ndjwy>some do
[00:07]<ndjwy>however I don't know about any presets :)
[00:09]<grppgyg>in emacs i can simply (c-set-style 'bsd) ;)
[00:10]<lxzzcvuzn>again
[00:10]<lxzzcvuzn>alot of people here, who could help you, do not know what that style is
[00:10]<lxzzcvuzn>I'm not going to google it, because I don't care
[00:10]<lxzzcvuzn>but if you _tell me_ then maybe i can do something
[00:11]<grppgyg>phrakture: http://en.wikipedia.org/wiki/Indent_style -> Allman/BSD
[00:12]<lxzzcvuzn>you just want the braces on the next lines?
[00:13]<grppgyg>yes
[00:15]<lxzzcvuzn>vim's indenting doesn't do things like that
[00:16]<grppgyg>there are probably other differences, but it's the major
[00:16]<ndjwy>e.g. the alignment of the braces
[00:17]<grppgyg>but what?
[00:17]<ndjwy>what what?
[00:17]<lxzzcvuzn>vim's indenting is just that - indenting. It doesn't move code or sigils around in the source
[00:17]<cyrrslrwr>vim matches braces fine here
[00:17]<lxzzcvuzn>kingspawn: wrong topic
[00:18]<cyrrslrwr>back to porn then
[00:18]<grppgyg>so it cannot reformat existing code?
[00:18]<ndjwy>lol
[00:18]<lxzzcvuzn>no, you can re-indent, but not re-format
[00:18]<ndjwy>Nalfein: no
[00:18]<lxzzcvuzn>formatting is your job
[00:18]<lxzzcvuzn>:s/\({\)$/\r{/g might do something
[00:18]<lxzzcvuzn>ack
[00:19]<lxzzcvuzn>:s/{$/\r{/g
[00:19]<ndjwy>;)
[00:19]<lxzzcvuzn>i think those need escaping
[00:19]<grppgyg>phrakture: thx
[00:19]<ndjwy>s/\s*{$/\r{/g
[00:19]<lxzzcvuzn>yeah better
[00:19]<lxzzcvuzn>then gg=G to reindent the braces properly
[00:20]<vljln>that would also add a blank line on parts that are already correct
[00:20]<ndjwy>tpope: good point :)
[00:20]<ndjwy>but
[00:20]<vljln>there are command line tools that can do this easy enough, just %! through one of them
[00:20]<lxzzcvuzn>tpope: i assumed if it is in "if() {" style the whole thing conforms
[00:20]<ndjwy>mixing styles is the path of devil
[00:20]<lxzzcvuzn>which is a decent guess
[00:21]<grppgyg>does GNU indent support C++?
[00:22]<lxzzcvuzn>wow Pico style blows
[00:22]<ndjwy>what?
[00:22]<lxzzcvuzn>the wiki link he gave
[00:22]<lxzzcvuzn>I glanced at the other named styles
[00:22]<lxzzcvuzn>check out Pico
[00:22]<lxzzcvuzn>if(foo)
[00:22]<lxzzcvuzn>{ a
[00:22]<lxzzcvuzn> b }
[00:22]<ndjwy>no, I meant 'Nalfein: what?'
[00:22]<lxzzcvuzn>oh, heh
[00:22]<ndjwy>;)
[00:24]<grppgyg>there's a program: GNU indent, it reindents existing C code
[00:24]<lxzzcvuzn>gnu style sucks too - looks like my prefered style is the one in the original question... "Allman/BSD"
[00:24]<lxzzcvuzn>BSD/Allman*
[00:25]<lxzzcvuzn>vim needs a Koders plugin
[00:26]<lxzzcvuzn>http://en.wikipedia.org/wiki/Koders
[00:29]<z0wjz>anyone have any idea how long vim7 takes to build?
[00:29]<z0wjz>(athlon64 1.6GHz)
[00:29]<lxzzcvuzn>not as long as vlc
[00:30]<z0wjz>erm... lol, how long is that?
[00:30]<lxzzcvuzn>vlc takes over an hour here - p4 3ghz
[00:31]<lxzzcvuzn>wine's even longer
[00:31]<ndjwy>aaaah, I thought you're talking about indenting styles again and it didn't give much sense to me
[00:31]<ndjwy>it should
[00:31]<z0wjz>oh, hehehe it's done already :)
[00:31]<lxzzcvuzn>Nyoxi: yeah, VLC indents for over an hour
[00:32]<lxzzcvuzn>it's real slow
[00:32]<lxzzcvuzn>8)
[00:32]<rrdgssrg>just be glad you're not on an m68k. it takes about 25 hours to build vim
[00:32]<ndjwy>echo
[00:32]<lxzzcvuzn>wtf do you need vim for on an m68k?
[00:32]<vljln>editing text files, I would guess
[00:33]<ndjwy>had some network issues here :/
[00:33]<lxzzcvuzn>I thought the m68k was embedded?
[00:33]<ndjwy>phrakture: yeah, gnu style sucks the most
[00:35]<lxzzcvuzn>i used to have a few 68HC boards lying around
[00:35]<lxzzcvuzn>if any editor goes on there, it'd be ed
[00:35]<lxzzcvuzn>or sam
[00:36]<ndjwy>:)
[00:38]<mrvnbsm>oo.o
[00:48]<z0wjz>so wait, where do i get gvim then... i compiled vim70 from source for unix but it didn't install gvim
[00:48]<z0wjz>what gives?
[00:48]<lxzzcvuzn>you have to enable gtk
[00:48]<z0wjz>i've got the gtk dev libs
[00:48]<lxzzcvuzn>err gtk2
[00:48]<z0wjz>both one and two
[00:49]<z0wjz>what do you mean







