Re: scripting question

2011-04-20 Thread Tim Chase
On 04/20/2011 02:08 PM, niva wrote: Hi, I am writing a script and have to detect some features of the opened file. my vimscript contains a recursive conditional blocks if cond1 else if cond2 if condN etc... else endif endif I would like to replace that by an object approach

scripting question

2011-04-20 Thread niva
Hi, I am writing a script and have to detect some features of the opened file. my vimscript contains a recursive conditional blocks if cond1 else if cond2 if condN etc... else endif endif I would like to replace that by an object approach but how can I do plaese ? I suppos

Re: Basic scripting question

2011-01-30 Thread meino . cramer
Christian Brabandt [11-01-30 10:40]: > Hi meino.cramer! > > On So, 30 Jan 2011, meino.cra...@gmx.de wrote: > > > this is a very basic question ... I am currently learning vim > > scripting. > > > > With getline(.) I can get the contents of a line of a buffer. > > > > But: i > > How can I repla

Re: Basic scripting question

2011-01-30 Thread Christian Brabandt
Hi meino.cramer! On So, 30 Jan 2011, meino.cra...@gmx.de wrote: > this is a very basic question ... I am currently learning vim > scripting. > > With getline(.) I can get the contents of a line of a buffer. > > But: i > How can I replace a line in the buffer with another contents? Use setline(

Basic scripting question

2011-01-29 Thread meino . cramer
Hi, this is a very basic question ... I am currently learning vim scripting. With getline(.) I can get the contents of a line of a buffer. But: i How can I replace a line in the buffer with another contents? How can I delete a line completly so it become an empty one or vanishes? How can I inse

Re: scripting question

2009-10-03 Thread Tim Chase
>> :h bufnr() >> :h winnr() >> :h winbufnr() >> :h bufwinnr() >> :h tabpagebuflist() > > These functions return the number of something not the count of > something what was what I intended. But they can be used to determine what you want...something like let buf2win={} | w

Re: scripting question

2009-10-03 Thread meino . cramer
> :h bufnr() > :h winnr() > :h winbufnr() > :h bufwinnr() > :h tabpagebuflist() > > hope these help. > > -- > Andy Thank you very much for your help! These functions return the number of something not the count of something what was what I intended. Keep hacking! mcc

Re: scripting question

2009-10-03 Thread Andy Wokula
meino.cra...@gmx.de schrieb: > Hi, > > is there a way to determine how often a window is split, how it is > split (h/v) and whether the same buffer is shown or different file > and what files are displayed? > > Thank you very much for any help in advance! > Have a nice weekend! > mcc :h bufnr

scripting question

2009-10-02 Thread meino . cramer
Hi, is there a way to determine how often a window is split, how it is split (h/v) and whether the same buffer is shown or different file and what files are displayed? Thank you very much for any help in advance! Have a nice weekend! mcc -- Please don't send me any Word- or Powerpoint-Attachm