Vim Cards - Powerpoint Format
-
Upload
adam-lowe -
Category
Technology
-
view
1.654 -
download
2
description
Transcript of Vim Cards - Powerpoint Format
![Page 1: Vim Cards - Powerpoint Format](https://reader033.fdocuments.in/reader033/viewer/2022061215/549f0b0aac795938768b48e5/html5/thumbnails/1.jpg)
![Page 2: Vim Cards - Powerpoint Format](https://reader033.fdocuments.in/reader033/viewer/2022061215/549f0b0aac795938768b48e5/html5/thumbnails/2.jpg)
dhDelete the letter the cursor is currently on and move left.
![Page 3: Vim Cards - Powerpoint Format](https://reader033.fdocuments.in/reader033/viewer/2022061215/549f0b0aac795938768b48e5/html5/thumbnails/3.jpg)
dlDelete the letter the cursor is currently on and move right.
![Page 4: Vim Cards - Powerpoint Format](https://reader033.fdocuments.in/reader033/viewer/2022061215/549f0b0aac795938768b48e5/html5/thumbnails/4.jpg)
diwDelete the current word.
![Page 5: Vim Cards - Powerpoint Format](https://reader033.fdocuments.in/reader033/viewer/2022061215/549f0b0aac795938768b48e5/html5/thumbnails/5.jpg)
ddDelete the current line.
![Page 6: Vim Cards - Powerpoint Format](https://reader033.fdocuments.in/reader033/viewer/2022061215/549f0b0aac795938768b48e5/html5/thumbnails/6.jpg)
DDelete to the end of the current line.
![Page 7: Vim Cards - Powerpoint Format](https://reader033.fdocuments.in/reader033/viewer/2022061215/549f0b0aac795938768b48e5/html5/thumbnails/7.jpg)
dipDelete the current paragraph.
![Page 8: Vim Cards - Powerpoint Format](https://reader033.fdocuments.in/reader033/viewer/2022061215/549f0b0aac795938768b48e5/html5/thumbnails/8.jpg)
dtqDelete to the next occurrence of the letter q.
![Page 9: Vim Cards - Powerpoint Format](https://reader033.fdocuments.in/reader033/viewer/2022061215/549f0b0aac795938768b48e5/html5/thumbnails/9.jpg)
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
![Page 10: Vim Cards - Powerpoint Format](https://reader033.fdocuments.in/reader033/viewer/2022061215/549f0b0aac795938768b48e5/html5/thumbnails/10.jpg)
yip“Yank” or copy the current paragraph to Vim’s buffer.
![Page 11: Vim Cards - Powerpoint Format](https://reader033.fdocuments.in/reader033/viewer/2022061215/549f0b0aac795938768b48e5/html5/thumbnails/11.jpg)
yy“Yank” or copy the current line to Vim’s buffer.
![Page 12: Vim Cards - Powerpoint Format](https://reader033.fdocuments.in/reader033/viewer/2022061215/549f0b0aac795938768b48e5/html5/thumbnails/12.jpg)
PPaste buffer contents before the current cursor position.
![Page 13: Vim Cards - Powerpoint Format](https://reader033.fdocuments.in/reader033/viewer/2022061215/549f0b0aac795938768b48e5/html5/thumbnails/13.jpg)
pPaste buffer contents after the current cursor position.
![Page 14: Vim Cards - Powerpoint Format](https://reader033.fdocuments.in/reader033/viewer/2022061215/549f0b0aac795938768b48e5/html5/thumbnails/14.jpg)
rReplace current character.
![Page 15: Vim Cards - Powerpoint Format](https://reader033.fdocuments.in/reader033/viewer/2022061215/549f0b0aac795938768b48e5/html5/thumbnails/15.jpg)
RReplace continuous characters starting at the current cursor position.
![Page 16: Vim Cards - Powerpoint Format](https://reader033.fdocuments.in/reader033/viewer/2022061215/549f0b0aac795938768b48e5/html5/thumbnails/16.jpg)
sSubstitute the current character.
![Page 17: Vim Cards - Powerpoint Format](https://reader033.fdocuments.in/reader033/viewer/2022061215/549f0b0aac795938768b48e5/html5/thumbnails/17.jpg)
SSubstitute the current line.
![Page 18: Vim Cards - Powerpoint Format](https://reader033.fdocuments.in/reader033/viewer/2022061215/549f0b0aac795938768b48e5/html5/thumbnails/18.jpg)
oOpen a new line below the current line.
![Page 19: Vim Cards - Powerpoint Format](https://reader033.fdocuments.in/reader033/viewer/2022061215/549f0b0aac795938768b48e5/html5/thumbnails/19.jpg)
OOpen a new line above the current line.
![Page 20: Vim Cards - Powerpoint Format](https://reader033.fdocuments.in/reader033/viewer/2022061215/549f0b0aac795938768b48e5/html5/thumbnails/20.jpg)
aAppend text after the current position.
![Page 21: Vim Cards - Powerpoint Format](https://reader033.fdocuments.in/reader033/viewer/2022061215/549f0b0aac795938768b48e5/html5/thumbnails/21.jpg)
AAppend text at the end of the current line.
![Page 22: Vim Cards - Powerpoint Format](https://reader033.fdocuments.in/reader033/viewer/2022061215/549f0b0aac795938768b48e5/html5/thumbnails/22.jpg)
iInsert text before the current position.
![Page 23: Vim Cards - Powerpoint Format](https://reader033.fdocuments.in/reader033/viewer/2022061215/549f0b0aac795938768b48e5/html5/thumbnails/23.jpg)
IInsert text at the start of the current line.
![Page 24: Vim Cards - Powerpoint Format](https://reader033.fdocuments.in/reader033/viewer/2022061215/549f0b0aac795938768b48e5/html5/thumbnails/24.jpg)
uUndo.
![Page 25: Vim Cards - Powerpoint Format](https://reader033.fdocuments.in/reader033/viewer/2022061215/549f0b0aac795938768b48e5/html5/thumbnails/25.jpg)
ctrl+rredo.
![Page 26: Vim Cards - Powerpoint Format](https://reader033.fdocuments.in/reader033/viewer/2022061215/549f0b0aac795938768b48e5/html5/thumbnails/26.jpg)
ctrl+psee autocomplete list.
![Page 27: Vim Cards - Powerpoint Format](https://reader033.fdocuments.in/reader033/viewer/2022061215/549f0b0aac795938768b48e5/html5/thumbnails/27.jpg)
shift+4Move to end of current line.
![Page 28: Vim Cards - Powerpoint Format](https://reader033.fdocuments.in/reader033/viewer/2022061215/549f0b0aac795938768b48e5/html5/thumbnails/28.jpg)
shift+6Move to start of current line.
![Page 29: Vim Cards - Powerpoint Format](https://reader033.fdocuments.in/reader033/viewer/2022061215/549f0b0aac795938768b48e5/html5/thumbnails/29.jpg)
ctrl+fMove Forward one screen.
Think Page Down.
![Page 30: Vim Cards - Powerpoint Format](https://reader033.fdocuments.in/reader033/viewer/2022061215/549f0b0aac795938768b48e5/html5/thumbnails/30.jpg)
ctrl+bMove Backward one screen.
Think Page Up.
![Page 31: Vim Cards - Powerpoint Format](https://reader033.fdocuments.in/reader033/viewer/2022061215/549f0b0aac795938768b48e5/html5/thumbnails/31.jpg)
ctrl+wCycle focus between open Vim windows.
![Page 32: Vim Cards - Powerpoint Format](https://reader033.fdocuments.in/reader033/viewer/2022061215/549f0b0aac795938768b48e5/html5/thumbnails/32.jpg)
ctrl+wrSwap window positions.
![Page 33: Vim Cards - Powerpoint Format](https://reader033.fdocuments.in/reader033/viewer/2022061215/549f0b0aac795938768b48e5/html5/thumbnails/33.jpg)
ctrl+w=Equalize window widths.
![Page 34: Vim Cards - Powerpoint Format](https://reader033.fdocuments.in/reader033/viewer/2022061215/549f0b0aac795938768b48e5/html5/thumbnails/34.jpg)
gfOpen the file that the cursor is currently on.
Think Go to File.
![Page 35: Vim Cards - Powerpoint Format](https://reader033.fdocuments.in/reader033/viewer/2022061215/549f0b0aac795938768b48e5/html5/thumbnails/35.jpg)
ctrl+wgfOpen file at current cursor position in new tab.
![Page 36: Vim Cards - Powerpoint Format](https://reader033.fdocuments.in/reader033/viewer/2022061215/549f0b0aac795938768b48e5/html5/thumbnails/36.jpg)
/item returnSearch for the word item.
![Page 37: Vim Cards - Powerpoint Format](https://reader033.fdocuments.in/reader033/viewer/2022061215/549f0b0aac795938768b48e5/html5/thumbnails/37.jpg)
nMove forward to the next occurrence in a search.
![Page 38: Vim Cards - Powerpoint Format](https://reader033.fdocuments.in/reader033/viewer/2022061215/549f0b0aac795938768b48e5/html5/thumbnails/38.jpg)
NMove backward to the previous occurrence in a search.
![Page 39: Vim Cards - Powerpoint Format](https://reader033.fdocuments.in/reader033/viewer/2022061215/549f0b0aac795938768b48e5/html5/thumbnails/39.jpg)
:s/new/old/gSubstitute the word “new” for the word “old” on the current line.
![Page 40: Vim Cards - Powerpoint Format](https://reader033.fdocuments.in/reader033/viewer/2022061215/549f0b0aac795938768b48e5/html5/thumbnails/40.jpg)
:%s/new/old/gSubstitute the word “new” for the word “old” on the current document.
![Page 41: Vim Cards - Powerpoint Format](https://reader033.fdocuments.in/reader033/viewer/2022061215/549f0b0aac795938768b48e5/html5/thumbnails/41.jpg)
:spSplit the current window in order to view two parts of the same file simultaneously.
![Page 42: Vim Cards - Powerpoint Format](https://reader033.fdocuments.in/reader033/viewer/2022061215/549f0b0aac795938768b48e5/html5/thumbnails/42.jpg)
:pwdPrint Working Directory. Lists the Vim’s current directory within the file system.
![Page 43: Vim Cards - Powerpoint Format](https://reader033.fdocuments.in/reader033/viewer/2022061215/549f0b0aac795938768b48e5/html5/thumbnails/43.jpg)
:cdChange Directory. Works just like in the terminal.
![Page 44: Vim Cards - Powerpoint Format](https://reader033.fdocuments.in/reader033/viewer/2022061215/549f0b0aac795938768b48e5/html5/thumbnails/44.jpg)
:e ~/path/file.nameEdit 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.
![Page 45: Vim Cards - Powerpoint Format](https://reader033.fdocuments.in/reader033/viewer/2022061215/549f0b0aac795938768b48e5/html5/thumbnails/45.jpg)
:Se ~/path/file.nameEdit a file in a horizontally split
window.
![Page 46: Vim Cards - Powerpoint Format](https://reader033.fdocuments.in/reader033/viewer/2022061215/549f0b0aac795938768b48e5/html5/thumbnails/46.jpg)
:Ve ~/path/file.nameEdit a file in a vertically split window.
![Page 47: Vim Cards - Powerpoint Format](https://reader033.fdocuments.in/reader033/viewer/2022061215/549f0b0aac795938768b48e5/html5/thumbnails/47.jpg)
:wWrite to file a.k.a Save.
![Page 48: Vim Cards - Powerpoint Format](https://reader033.fdocuments.in/reader033/viewer/2022061215/549f0b0aac795938768b48e5/html5/thumbnails/48.jpg)
:wqWrite to file and quit.