Skip to content

Commit

Permalink
View the duplicates lines (very magic)
Browse files Browse the repository at this point in the history
  • Loading branch information
Randy8080 committed Aug 26, 2021
1 parent 48b9bdd commit 28e0650
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions vim.md
Original file line number Diff line number Diff line change
Expand Up @@ -558,6 +558,7 @@ Search and Replace {.cols-3}
:g/^pattern/s/$/mytext # Find and append text to the end
:g/pattern/norm! @i # Run a macro on matching lines
/^\(.*\)\(\r\?\n\1\)\+$ # View the duplicates lines
/\v^(.*)(\r?\n\1)+$ # View the duplicates lines (very magic)
:v/./,/./-j # Compress blank lines into a blank line
:g/<p1>/,/<p2>/d # Delete inclusively from <p1> to <p2>
```
Expand Down

0 comments on commit 28e0650

Please sign in to comment.