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.72 MB
Powered by
Channel Info
Network: freenodeChannel: #vim |
Search in www.irclog.org
Log from #vim at freenode 2006-05-24
[14:23]<ygmusvzyrf>What's the best way to use automatic indenting with javascript (its server side jscript (asp) actually, there is no good syntax file)? cindent?
[14:24]<mrgynf>Did you search vim.sf.net?
[14:33]<zygmjpp>Hi all.
[14:36]<zygmjpp>Is there anyway I can tell vim to put the opening/closing braces two spaces to the right of the condition line, and the body of the condition two spaces right to that? I'm editing PHP.
[14:37]<zygmjpp>Also, is there any way to make vim convert every 8 leading spaces to a tab?
[14:40]<nsnftxnj>rindolf, there are various ways.
[14:40]<zdzzd_zfzzzsjg>:help retab
[14:40]<nsnftxnj>easiest is to read the topic
[14:41]<mysx>i opened a patch (diff output) in vim. vim detects filetype, syntax highlighting is nice. so far, so good
[14:42]<mysx>now, my question is. it's multifile patch. it consists of per-file sections, and chunks inside each file. can I jump by chunks & by sections using builtin vim motions ? or I need to map my own maps ?
[15:02]<p00fytx>ok, so a couple of folks in here ...
[15:03]<p00fytx>just wondering if anyone here has recommendations for making vim default to using a partcular file type, for syn, or if ther's a good way to get it to pick up mason ...
[15:03]<p00fytx>since it uses html when i edit .html files (that are really full of mason-y goodness)
[15:23]<vxlj>can anybody help me debug why my SpellFileMissing does not download a spellfile although the spellfile plugin is loaded and Nread is defined and the spellfile_URL is set=
[15:25]<ryffyrrgw>hi
[15:25]<ryffyrrgw>for some reason I can't join this channel from my pc at home because my IP seems to be banned. The ban can hardly be targeted towards me as i've hardly ever hang out here at all...
[15:28]<cnfnsvzz>hm ..
[15:28]<cnfnsvzz>where do I find solaris binaries?
[15:28]<mrgynf>gilligan1: Do a /bans and find out which ban it is, and get it removed by an operator.
[15:29]<cyac_>probably dip0.t-ipconnect.de , bad idea to block that
[15:29]<ryffyrrgw> *!*@*.dip0.t-ipconnect.de
[15:29]<ryffyrrgw>indeed
[15:30]<ryffyrrgw>that is almost like ban *.de given that it is the ipmask of the biggest provider in Germany
[15:31]<ryffyrrgw>hm, I see no ops listed in the server welcome message
[15:32]<cyac_>Mai 18 19:52:53 --- MetaCosm sets ban on *!*@*.dip0.t-ipconnect.de
[15:32]<cyac_>MetaCosm: ping
[15:33]<ryffyrrgw>ah,k
[15:34]<rvfjgmjgj>huh, that's a wide ban indeed
[15:41]<p00fytx>anyone know how to trick vim into using mason colours for syntax hilighting .html files?
[15:44]<rvfjgmjgj>f00li5h: :he au
[15:45]<p00fytx>avlondono: i see
[15:46]<vyddrg>hi.. how do i use python binding to vim 7 ? ... i mean auto suggest for methods in python
[15:46]<p00fytx>avlondono: i see, so i just wack a set ft=mason in one of those then?
[15:46]<rvfjgmjgj>that's one option.
[15:46]<p00fytx>avlondono: oh, have you a better one then?
[15:47]<p00fytx>or is it more of a TMTOWTDI type situation?
[15:47]<rvfjgmjgj>you ccould also put in your ~/.vim/syntax/ a file called html.vim with the mason syntax rules. I think that would work, but I repeat, *think*
[15:47]<rvfjgmjgj>TMTOWTDI?
[15:47]<p00fytx>avlondono: there is more than one way to do it
[15:47]<rvfjgmjgj>heh
[15:47]<zzfdzz>f00li5h: more like a TMTDDUHIDWS situation... :P
[15:48]<p00fytx>calmar: i don't follow...
[15:48]<rvfjgmjgj>IASOPHCFTCA
[15:48]<p00fytx>avlondono: i see, there is already a set of rules for mason hilighting... would i just have to copy that in there
[15:48]<rvfjgmjgj>interesting way to talk ;-)
[15:48]<p00fytx>calmar: i thought so... but i couldn't prove anything
[15:49]<rvfjgmjgj>f00li5h: I would try that. but I don't know how the rules for mason (whatever that is) are
[15:49]<p00fytx>avlondono: mason is a perl module for embedding perl in html (sorry)
[15:49]<rvfjgmjgj>butnow I think that the autocommand is cleaner
[15:49]<rvfjgmjgj>then you can change a real html file to html
[15:50]<p00fytx>avlondono: i think (not sure, but think) that html works OK in the mason ft, but i have no way of being sure
[15:50]<rvfjgmjgj>you'll discover it
[15:51]<vyddrg>vim 7 rocks!!!
[15:51]<p00fytx>vimman: how could it get better?
[15:51]<p00fytx><than what i've got now>
[15:52]<vyddrg>is there a suggest feature that is language specific ?
[15:52]<vyddrg>f00li5h: ^
[15:52]<p00fytx>vimman: ^?
[15:53]<vyddrg>for example... if i type os. and press C-n .. i should get path,join.. etc as suggest if i use python f00li5h
[15:53]<mzsvnzc>hi all
[15:54]<p00fytx>vimman: yowch, that /is/ nice! how does it know?
[15:54]<vyddrg>.py should tell it.. eclipse has such features.. thats what those guys say
[15:55]<zzfdzz>f00li5h: maybe: au! BufRead,BufNewFile *.html set ft=xhtml
[15:55]<zzfdzz>s/xhtml/mason
[15:55]<p00fytx>calmar: i see...
[15:57]<p00fytx>calmar: by jove! that's fantastic. to the vimrc with it!
[15:58]<zzfdzz>i'm not sure if that's the proper to do it. I have things like that in my .vimrc at least
[16:00]<p00fytx>calmar: i had to expand ac! and it is in a if has ("autocmd")
[16:01]<zzfdzz>f00li5h: i see.
[16:03]<p00fytx>calmar: would you have another suggestion?
[16:03]<zzfdzz>f00li5h: for what?
[16:04]<zzfdzz>for setting the filetype for your html files?
[16:04]<p00fytx>calmar: where to stick an autocmd for .html files?
[16:04]<p00fytx>braids are good...
[16:04]<p00fytx><_<
[16:05]<zzfdzz>no, that works isn't it, so. well..
[16:07]<p00fytx>lovely! then there it will stay
[16:16]<rfyan|wf>hello, how do I delete lines starting with - ?
[16:17]<rvfjgmjgj>alice|wl: look at the faq in the topic
[16:17]<rfyan|wf>I know there was a modifier to make the substition work on the whole line and I think it was g but I cant figure out how to use it :)
[16:19]<ryffyrrg_>alice|wl, http://larc.ee.nthu.edu.tw/~cthuang/vim/files/vim-regex/vim-regex.htm
[16:19]<ryffyrrg_>that's the second hit when googing for 'vim regular expression delete lines'
[16:20]<ryffyrrg_>not hard to find... :]
[16:21]<rfyan|wf>:) I mosly as first in irc as the results seem more reliable me and then start googling while waiting for an answer
[16:21]<rfyan|wf>is this evil?
[16:23]<p00fytx>lopl?
[16:24]<ryffyrrg_>alice|wl, well it's called being *lazy*
[16:24]<rvfjgmjgj>actually, it's more work
[16:25]<rfyan|wf>actualy its not out of lazyness but the whish for the best solution and for bleeding edge tipps which is sometimes hard to tell from google hits
[16:26]<ryffyrrg_>okay.. it hink that's bullshit.. but I really don't care :]
[16:27]<ryffyrrg_>as long as you keep on finding ppl like me that throw google urls at you everyone should be happy :]
[16:27]<rfyan|wf>thats wrong but I dont care either :)
[16:28]<ryffyrrg_>:g/^-.*$/ d
[16:28]<rvfjgmjgj>uff
[16:28]<ryffyrrg_>there you go
[16:28]<rvfjgmjgj>:g/^-/d
[16:28]<rfyan|wf>Some examples of :global usage:
[16:28]<ryffyrrg_>this is "bleeding edge"
[16:28]<rvfjgmjgj>read the help fo :g
[16:29]<rvfjgmjgj>that's why you should have read the faq from the beginning







