Copy Paste Lines

In this lesson, you will learn how to copy and paste lines using the yank and put operators.

y
y
-yank (copy) the current line.
Example
p
-put (paste) below the cursor.
Example
P
p
-put (paste) above the cursor.
Example
Y
y
-alternative mapping for yy
Example














import sqlite3 from 'sqlite3';
import { open } from 'sqlite';
const db = await open({
driver: sqlite3.Database,
mode: sqlite3.OPEN_READWRITE,
verbose: true,
// Additional options...
});
await db.exec('CREATE TABLE IF NOT EXISTS ...');
await db.run('INSERT INTO messages ...');
return db;
 0/15  00:00