Editing Flashcards

1
Q

Insert characters

A

i

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Append to current word

A

a

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Append to end of line

A

A

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Delete current character

A

x

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Delete current line

A

dd

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Delete Word

A

dw (deletes entire word when cursor at the first character of a word)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Delete to the end of the line

A

d$

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Move forward five words

A

5w (use 5e to move to end of the word of the fifth word)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Delete the next 3 lines

A

3dd

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Undo last change

A

u

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Undo all changes on line

A

U

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Redo the last edit

A

Ctrl + R

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Add the current contents of the register with the put command

A

p (similar to paste)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Replace

A

r

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Change operator (change current word ending from where the cursor is)

A

ce

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Change ending of line from where cursor is

A

c$

17
Q

Open a new line below cursor

A

o

18
Q

OPen a new line above cursor

A

O

19
Q

Append after cursor

A

a

20
Q

Replace more than one character

A

R

21
Q

In Visual mode, copy (or yank) selected text

A

y

22
Q

Move cursor to end of next line

A

j$

23
Q

Yank one word

A

yw

24
Q

Set search option to highlight words

A

:set hcl (:nohclsearch to remove highlighting)

25
Q

Set search to ignore case

A

:set ic (to disbale :set noic)

26
Q

Set the increment search option

A

:set is

27
Q

Copy to clipboard register

A

“+yy

+ is reserved for the clipboard

28
Q

Autocomplete

A

Ctrl + p

29
Q

Toggle letter case

A

Make the selection in visial mode.

Then U for upper case, u for lower case.

30
Q

Insert output of a command into a file

A

:r !ls

This would add the output of the ls command into a file

31
Q

Insert the contents of a file into another fille

A

:r sample.txt

This would add the contents of sample.txt into the current file

32
Q

What mode does would the following displaying in the command area suggest:

A

Visual selection mode

33
Q

Write a selected text to file in visual mode

A

:‘w

34
Q

Append selected text to file in visual mode

A

:‘w»

35
Q

Repeat the last used macro

A

@@

36
Q

Autocomplete

A

Ctrl + p