mirror of
https://github.com/Fechin/reference.git
synced 2026-11-20 21:23:11 +03:00
View the duplicates lines (very magic)
This commit is contained in:
1 parent
48b9bdde68
commit
28e0650bd5
1 file changed
+1
@@ -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>
|
||||
```
|
||||
|
||||
Reference in new issue
Block a user