mirror of
https://github.com/iggredible/Learn-Vim
synced 2024-11-25 20:10:19 +00:00
removes extra the
This commit is contained in:
parent
bf68280be8
commit
377ee448ee
1 changed files with 1 additions and 1 deletions
|
@ -90,7 +90,7 @@ zlet zzthree = "3";
|
|||
let four = "4";
|
||||
```
|
||||
|
||||
Let's remove all the z's. Starting from the first character on the first line, visually select the only the first z from the first three lines with blockwise visual mode (`Ctrl-Vjj`). If you're not familiar with blockwise visual mode, I will cover them in a later chapter. Once you have the three z's visually selected, delete them with the delete operator (`d`). Then move to the next word (`w`) to the next z. Repeat the change two more times (`..`). The full command is `Ctrl-vjjdw..`.
|
||||
Let's remove all the z's. Starting from the first character on the first line, visually select only the first z from the first three lines with blockwise visual mode (`Ctrl-Vjj`). If you're not familiar with blockwise visual mode, I will cover them in a later chapter. Once you have the three z's visually selected, delete them with the delete operator (`d`). Then move to the next word (`w`) to the next z. Repeat the change two more times (`..`). The full command is `Ctrl-vjjdw..`.
|
||||
|
||||
When you deleted a column of three z's (`Ctrl-vjjd`), it was counted as a change. Visual mode operation can be used to target multiple lines as part of a change.
|
||||
|
||||
|
|
Loading…
Reference in a new issue