User Tools

Site Tools


linux:vi

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux:vi [2020/11/26 00:27] Wulf Rajeklinux:vi [2023/05/29 11:55] (current) – external edit 127.0.0.1
Line 65: Line 65:
 gg"*yG gg"*yG
 :%y+ :%y+
 +
 +===== Search & Replace =====
 +
 +<code>
 +:%s/bla/blubs/
 +</code>
 +
 +Complex replace with reference:
 +<code>
 +:%s/rtrim(\(.*\),"0")/zerotrim(\1)/
 +</code>
 +
 +to repeat, press ":", then the cursor up
  
linux/vi.1606350438.txt.gz · Last modified: 2023/05/29 11:53 (external edit)