Skip to main content
deleted 1 character in body
Source Link
romainl
  • 42.3k
  • 5
  • 87
  • 118

In fact, fg is "foreground" in Bash, but not in Vi(m). d3fg means:

d - Delete until...
3 - Do the next commandmotion 3 times
f - Go to the next occurrence of the next character pressed.
g - The character to go to.

Thus, d3fg will delete up to (including) the third letter g on the line after the cursor.

Thus the following text, with the cursor on the 0:

01g2g3g4g5g6

Becomes after d3fg:

4g5g6

In fact, fg is "foreground" in Bash, but not in Vi(m). d3fg means:

d - Delete until...
3 - Do the next command 3 times
f - Go to the next occurrence of the next character pressed.
g - The character to go to.

Thus, d3fg will delete up to (including) the third letter g on the line after the cursor.

Thus the following text, with the cursor on the 0:

01g2g3g4g5g6

Becomes after d3fg:

4g5g6

In fact, fg is "foreground" in Bash, but not in Vi(m). d3fg means:

d - Delete until...
3 - Do the next motion 3 times
f - Go to the next occurrence of the next character pressed.
g - The character to go to.

Thus, d3fg will delete up to (including) the third letter g on the line after the cursor.

Thus the following text, with the cursor on the 0:

01g2g3g4g5g6

Becomes after d3fg:

4g5g6

edited body
Source Link
Doorknob
  • 15.7k
  • 3
  • 49
  • 70

In fact, fg is Foreground"foreground" in Bash, but not in VIVi(Mm). d3fg aremeans:

d - Delete until...
3 - Do the next command 3 times
f - Go to the next occurrence of the next character pressed.
g - The character to go to.

Thus, d3fg will delete up to (including) the third letter g on the line after the cursor.

Thus the following text, with the cursor on the 0:

01g2g3g4g5g6

Becomes after d3fg:

4g5g6

In fact, fg is Foreground in Bash, but not in VI(M). d3fg are:

d - Delete until...
3 - Do the next command 3 times
f - Go to the next occurrence of the next character pressed.
g - The character to go to.

Thus, d3fg will delete up to (including) the third letter g on the line after the cursor.

Thus the following text, with the cursor on the 0:

01g2g3g4g5g6

Becomes after d3fg:

4g5g6

In fact, fg is "foreground" in Bash, but not in Vi(m). d3fg means:

d - Delete until...
3 - Do the next command 3 times
f - Go to the next occurrence of the next character pressed.
g - The character to go to.

Thus, d3fg will delete up to (including) the third letter g on the line after the cursor.

Thus the following text, with the cursor on the 0:

01g2g3g4g5g6

Becomes after d3fg:

4g5g6

added 84 characters in body
Source Link
dotancohen
  • 619
  • 3
  • 13

In fact, fg is Foreground in Bash, but not in VI(M). d3fg are:

d - Delete until...
3 - Do the next command 3 times
f - Go to the next occurrence of the next character pressed.
g - The character to go to.

Thus, d3fg will delete up to (including) the third letter g on the line after the cursor.

Thus the following text, with the cursor on the 0:

01g2g3g4g5g6

Becomes after d3fg:

4g5g6

In fact, fg is Foreground in Bash, but not in VI(M). d3fg are:

d - Delete until...
3 - Do the next command 3 times
f - Go to the next occurrence of the next character pressed.
g - The character to go to.

Thus, d3fg will delete up to (including) the third letter g on the line after the cursor.

In fact, fg is Foreground in Bash, but not in VI(M). d3fg are:

d - Delete until...
3 - Do the next command 3 times
f - Go to the next occurrence of the next character pressed.
g - The character to go to.

Thus, d3fg will delete up to (including) the third letter g on the line after the cursor.

Thus the following text, with the cursor on the 0:

01g2g3g4g5g6

Becomes after d3fg:

4g5g6

Source Link
dotancohen
  • 619
  • 3
  • 13
Loading