kewah / Vim Stylefmt
Licence: wtfpl
Format your stylesheets using stylefmt inside Vim
Stars: ✭ 35
Labels
Projects that are alternatives of or similar to Vim Stylefmt
Ftcolor.vim
Switches colorschemes according to the file type.
Stars: ✭ 34 (-2.86%)
Mutual labels: viml
Linters.vim
Automatically run linters over your code as you write it
Stars: ✭ 28 (-20%)
Mutual labels: viml
Vim Monokai Refined
Port of Monokai Refined for TextMate/Sublime Text, using sickill's Coloration converter
Stars: ✭ 27 (-22.86%)
Mutual labels: viml
Tskeleton vim
File Templates and Code Skeletons/Snippets for VIM
Stars: ✭ 33 (-5.71%)
Mutual labels: viml
Vim Blackboard
A port of the Blackboard theme from TextMate to Vim.
Stars: ✭ 34 (-2.86%)
Mutual labels: viml
Vim Smartusline
Vim plugin that changes the color of the statusbar of the focused window according with the current mode (normal/insert/replace)
Stars: ✭ 34 (-2.86%)
Mutual labels: viml
vim-stylefmt
Format your stylesheets using stylefmt inside Vim. Stylefmt supports the latest CSS syntax and understands CSS-like syntax such as SCSS, Stylus and Less.
This plugin is heavily inspired by vim-esformatter.
Installation
First you need to install stylefmt (make sure you have Node.js installed):
npm install -g stylefmt
Then install the plugin:
- Manual installation:
- Copy the files to your
.vim/plugin
directory
- Copy the files to your
- Pathogen
cd ~/.vim/bundle && git clone git://github.com/kewah/vim-stylefmt.git
- Vundle
- Add
Plugin 'kewah/vim-stylefmt'
to.vimrc
- Run
:PluginInstall
- Add
- NeoBundle
- Add
NeoBundle 'kewah/vim-stylefmt'
to.vimrc
- Run
:NeoBundleInstall
- Add
- vim-plug
- Add
Plug 'kewah/vim-stylefmt'
to.vimrc
- Run
:PlugInstall
- Add
Usage
In normal mode:
-
:Stylefmt
: format the whole buffer.
In Visual mode:
-
:'<,'>StylefmtVisual
: format the selected block.
Or by mapping the commands in your .vimrc
:
nnoremap <silent> <leader>cs :Stylefmt<CR>
vnoremap <silent> <leader>cs :StylefmtVisual<CR>
License
Released under the wtfpl license
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].