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
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
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
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(
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
>> :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
> :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
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
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