Skip to content
Euccas Chen edited this page Sep 27, 2018 · 3 revisions

Vim Help

  • Substitute Windows line breaks to Linux line breaks
:%s/<Ctrl-V><Ctrl-M>/\r/g
  • Count how many times a match pattern is found
:%s/<pattern>//n
  • Search for lines not starting with specified characters
/^[^c][^x]_/  # searching for lines not starting with "cx"
Clone this wiki locally