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