Vim Cards - Keynote Format
Upcoming SlideShare
Loading in...5
×
 

Vim Cards - Keynote Format

on

  • 4,235 views

Slide deck for memorizing the Vim commands that I've found most useful over my first few months as a Vim user. ...

Slide deck for memorizing the Vim commands that I've found most useful over my first few months as a Vim user.

This was purposefully kept free of any styling etc as this is the actual deck I use for memorization and don't like distractions.

Statistics

Views

Total Views
4,235
Views on SlideShare
4,166
Embed Views
69

Actions

Likes
14
Downloads
126
Comments
0

6 Embeds 69

http://coderwall.com 34
http://www.slideshare.net 31
http://trunk.ly 1
http://trunk.ly 1
http://www.linkedin.com 1
http://www.docshut.com 1

Accessibility

Categories

Upload Details

Uploaded via as Apple Keynote

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Vim Cards - Keynote Format Vim Cards - Keynote Format Presentation Transcript

  • Delete the letter the cursor is currently on and move left.
  • dh Delete the letter the cursor is currently on and move left.
  • Delete the letter the cursor is currently on and move right.
  • dl Delete the letter the cursor is currently on and move right.
  • Delete the current word.
  • diw Delete the current word.
  • Delete the current line.
  • dd Delete the current line.
  • Delete to the end of the current line.
  • D Delete to the end of the current line.
  • Delete the current paragraph.
  • dip Delete the current paragraph.
  • Delete to the next occurrence of the letter q.
  • dtq Delete to the next occurrence of the letter q.
  • Note: When you delete something in Vim it is like cut in other editors. What you delete is then available in the buffer to be pasted. The buffer and your clipboard are not the same entity. To paste from the clipboard use ⌘v on OS X or on other systems use “+p or “*p
  • “Yank” or copy the current paragraph to Vim’s buffer.
  • yip “Yank” or copy the current paragraph to Vim’s buffer.
  • “Yank” or copy the current line to Vim’s buffer.
  • yy “Yank” or copy the current line to Vim’s buffer.
  • Paste buffer contents before the current cursor position.
  • P Paste buffer contents before the current cursor position.
  • Paste buffer contents after the current cursor position.
  • p Paste buffer contents after the current cursor position.
  • Replace current character.
  • r Replace current character.
  • Replace continuous characters starting at the current cursor position.
  • R Replace continuous characters starting at the current cursor position.
  • Substitute the current character.
  • s Substitute the current character.
  • Substitute the current line.
  • S Substitute the current line.
  • Open a new line below the current line.
  • o Open a new line below the current line.
  • Open a new line above the current line.
  • O Open a new line above the current line.
  • Append text after the current position.
  • a Append text after the current position.
  • Append text at the end of the current line.
  • A Append text at the end of the current line.
  • Insert text before the current position.
  • i Insert text before the current position.
  • Insert text at the start of the current line.
  • I Insert text at the start of the current line.
  • Undo.
  • u Undo.
  • redo.
  • ctrl+r redo.
  • see autocomplete list.
  • ctrl+p see autocomplete list.
  • Move to end of current line.
  • shift+4 Move to end of current line.
  • Move to start of current line.
  • shift+6 Move to start of current line.
  • Move Forward one screen. Think Page Down.
  • ctrl+f Move Forward one screen. Think Page Down.
  • Move Backward one screen. Think Page Up.
  • ctrl+b Move Backward one screen. Think Page Up.
  • Cycle focus between open Vim windows.
  • ctrl+w Cycle focus between open Vim windows.
  • Swap window positions.
  • ctrl+wr Swap window positions.
  • Equalize window widths.
  • ctrl+w= Equalize window widths.
  • Open the file that the cursor is currently on. Think Go to File.
  • gf Open the file that the cursor is currently on. Think Go to File.
  • Open file at current cursor position in new tab.
  • ctrl+wgf Open file at current cursor position in new tab.
  • Search for the word item.
  • /item return Search for the word item.
  • Move forward to the next occurrence in a search.
  • n Move forward to the next occurrence in a search.
  • Move backward to the previous occurrence in a search.
  • N Move backward to the previous occurrence in a search.
  • Substitute the word “new” for the word “old” on the current line.
  • :s/new/old/g Substitute the word “new” for the word “old” on the current line.
  • Substitute the word “new” for the word “old” on the current document.
  • :%s/new/old/g Substitute the word “new” for the word “old” on the current document.
  • Split the current window in order to view two parts of the same file simultaneously.
  • :sp Split the current window in order to view two parts of the same file simultaneously.
  • Print Working Directory. Lists the Vim’s current directory within the file system.
  • :pwd Print Working Directory. Lists the Vim’s current directory within the file system.
  • Change Directory. Works just like in the terminal.
  • :cd Change Directory. Works just like in the terminal.
  • Edit the file name at the given path. When given for a file that does not exist yet it will be stored in the buffer and created when you Write.
  • :e ~/path/file.name Edit the file name at the given path. When given for a file that does not exist yet it will be stored in the buffer and created when you Write.
  • Edit a file in a horizontally split window.
  • :Se ~/path/file.name Edit a file in a horizontally split window.
  • Edit a file in a vertically split window.
  • :Ve ~/path/file.name Edit a file in a vertically split window.
  • Write to file a.k.a Save.
  • :w Write to file a.k.a Save.
  • Write to file and quit.
  • :wq Write to file and quit.