vim-reference




Pay Notebook Creator: Salah Ahmed0
Set Container: Numerical CPU with TINY Memory for 10 Minutes 0
Total0

Power of g

narrowing Ex command to lines with pattern

Ex commands are commands that start with :, like :d for delete

  • :[range]g/pattern/cmd
    • range is range of pattern search (default is whole file)

narrowing Ex command to lines without pattern

The commands shown are equivalent (v is "inverse").

  • :g!/pattern/d
  • :v/pattern/d