Search notes:

vim script: a firstline

fu! TestFunc() range

  " When a function is decorated with the «range» modifier,
  " it is passed implicit a:firstline and a:lastline arguments
  " The values of these arguments denote the line of the cursor
  " when no visual selection is used or the first and last line
  " of a visual selection.

  echo 'first line is: ' . a:firstline . ', last line is: ' . a:lastline

endfu
Github repository about-vim, path: /vimscript/variables/internal/a_firstline.vim

See also

VIM script

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1759561890, '216.73.216.149', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/vim/script/vimscript/variables/a_firstline(48): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78