Removing a line from the buffer in a vim script

Posted by ahe on Stack Overflow See other posts from Stack Overflow or by ahe
Published on 2010-03-27T22:12:22Z Indexed on 2010/03/27 22:13 UTC
Read the original article Hit count: 274

Filed under:
|

According to http://vimdoc.sourceforge.net/htmldoc/usr_41.html#function-list vim script has functions setline() and append() to modify the current buffer but how do i delete a line from within a script? With setline(1, "") the line is only emptied but I want to get rid of it.

© Stack Overflow or respective owner

Related posts about vim

Related posts about vimscript