Search notes:

Vim ex commands: m, t and co

:m is an abbreviation for :move, :t and :co are abbreviations for :copy.
Move/copy current line to the end of the buffer:
:m$
:t$
Move the line after two lines below cursor to end of the buffer:
:+2m$
Copy three lines, starting after two lines, to beginning of buffer. Spaces are not required, here included for readabilty:
:+2,+4 t 0
t and m are especially useful with the global (g) command. The following command moves all lines that match pattern to the end of the buffer:
:g/pattern/m$

See also

Ex commands

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...', 1740080093, '3.133.131.225', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/vim/commands/m(53): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78