Skip to content
This repository was archived by the owner on Dec 30, 2019. It is now read-only.
/ vim-px-to-rem Public archive
forked from chiedo/vim-px-to-em

Convert px to rem. Makes font-size unit conversion for your CSS stylesheets easy.

Notifications You must be signed in to change notification settings

rossjrw/vim-px-to-rem

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 

Repository files navigation

vim-px-to-rem

Makes font-size unit conversion for your CSS stylesheets easy!

Installation

Vundle Install

:Plugin 'rossjrw/vim-px-to-rem' in ~/.vimrc then :PluginInstall

Usage

To convert px to rem, visual select a bunch of text then:

:Rem

Or enter the following to convert the rem to px:

:Px

To convert all px in the file to rem:

:RemAll

Or to convert all rem in the file to px:

:PxAll

Add a bang (eg. :Px!) to any of the above command to bypass the prompts before each conversion.

If the value is a valid px or rem measurement, it'll be converted.

1rem is assumed to be equal to 16px.

Does not convert em, as em is a context-aware unit.

License

Forked from https://github.com/chiedo/vim-px-to-em and under the same license.

About

Convert px to rem. Makes font-size unit conversion for your CSS stylesheets easy.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vim Script 100.0%