Skip to content

PracticalVim Tip100

Shuai YUAN edited this page May 29, 2015 · 1 revision

Table of Contents

Tip 100: Alphabetize the Properties of Each Rule in a CSS File

Return to the top: <>

Example: sort the properties of each rule into alphabetical order in a CSS file using `:sort` command.

References:

Sort Properties for a Single Block of Rules

Sort Properties for Every Block of Rules

_NOTE_: `.` here stands for each line in turn that matches the specified `{pattern}`.

Discussion

Example: indent the properties of each rule in a CSS file.

  • `:>` Ex command

References:

  • mute these messages by prefixing our `[cmd]` with `:silent`:

References:

Table of Contents


Clone this wiki locally