Vi Cheat Sheet Pdf - Allows you to enter special commands. You insert text into the file and can move around (using the arrows) in the file if you are using vim. Web vim cheat sheet allison mcknight (aemcknig@andrew.cmu.edu) navigation h move left h top line on screen j move down m middle line on screen k move up l bottom line on screen l move right 10j move down 10 lines gg first line of the le e the end of the current word g last line of the le b beginning of current word You exit insert mode by pressing the esc key. Copy the specified number of lines. Copy a word with its trailing whitespace. Web vi opens the editor in default mode j joins two lines vi <filename.txt > opens the specified file or creates a new file in vi editor yyp repeats the current line ddp swaps two lines i changes to insert mode i inserts text at the start of the current line k moves up one line a appends after the cursor’s current position j moves down one line a appends to the end of the line h moves one. Switch to insert mode before the cursor. Insert text at the beggining of the line. Switch to insert mode after the cursor.
You insert text into the file and can move around (using the arrows) in the file if you are using vim. Switch to insert mode after the cursor. Copy a word with its trailing whitespace. Web vim cheat sheet allison mcknight (aemcknig@andrew.cmu.edu) navigation h move left h top line on screen j move down m middle line on screen k move up l bottom line on screen l move right 10j move down 10 lines gg first line of the le e the end of the current word g last line of the le b beginning of current word Web vi opens the editor in default mode j joins two lines vi <filename.txt > opens the specified file or creates a new file in vi editor yyp repeats the current line ddp swaps two lines i changes to insert mode i inserts text at the start of the current line k moves up one line a appends after the cursor’s current position j moves down one line a appends to the end of the line h moves one. You exit insert mode by pressing the esc key. Allows you to enter special commands. Insert text at the beggining of the line. Switch to insert mode before the cursor. Copy the specified number of lines. You can navigate the file and use the commands on this sheet.