Skip to main content

miscellaneous

  • :retab converts all tabs to spaces

Examples of regex in vim substitutions

Notice that a newline in vim is \r

:%s/\s+/\r/gc substitute each space (at least one) with a new line