#vim - Sun 6 May 2007 between 12:07 and 12:22

NY Lost Funds



okdavincilet me have a try
:split BufName ,but a new file was created
how to use one of the buffers comand.could you give me a example.thanks verymuch.
:split buffer Bufname?
ipkiss:h buffers
twbQuick question: I have "syn on" in .vimrc. Some of my hosts have a vim without the syn feature, so it complains when I start vim. Can I put something like "if syn: syn on" instead, so that these hosts don't complain?
ipkisstwb: :h has()
twbE433: No tags file
E149: Sorry, no help for has()
ipkissgo on one of your hosts where vim is correctly installed :)
somianeeek
yup
twbEek. How do I terminate an if branch?
DustyDingohm, the 'gd' feature to jump to the definition of a local variable doesn't seem to work as it should, when the local variable is a function argument
tirkalis there a keybinding to :bd?
ipkisstwb: :h :if
twb:-)
okdavinciget
DustyDingoin C++ it often puts the curser to a different function, which has the same argument by name
okdavincigot it. :snext :sbuff Buffname
DustyDingobut of course this isn't the behaviour you expect,..
am i doing something wrong ot is it just the case?
tirkal(:bdelete)
ipkisstirkal: no there isn't by default
twbSo is this right? http://twb.ath.cx/~twb/scratch/profile/.vimrc
ipkissDustyDingo: I noticed that namespaces often confuse vim (in particular for [[ and ]])
tirkalipkiss: maybe for Quit Window then?
ipkisstirkal: why not making your own mapping, if you feel the need for it?
tirkaljust seemed like a common need :)
don't you guys use :bd lots of times per day?
which reminds me: why isn't there a shortcut for :bn?
DustyDingoipkiss: i think it treetsthe whole file as just one big space and jumps to the fist definition of the variable, even when it is in a complete other function
ipkisstirkal: i don't use it much, because often i don't care about the buffer still being loaded
DustyDingoso maybe this feature is just half-backed, tho it would be a killer
ipkissDustyDingo: as explained in :h gd, it relies on [[
tirkalipkiss: still, it would make sense to bind something to :bn
DustyDingoipkiss: stupid :(
ipkisstirkal: i did map something to :bn :)
tirkalwhat did you map to it?
do you use bufexplorer or something like it?

Page: 4 

IrcArchive

NY Lost Funds