All Projects → kewah → Vim Stylefmt

kewah / Vim Stylefmt

Licence: wtfpl
Format your stylesheets using stylefmt inside Vim

Labels

Projects that are alternatives of or similar to Vim Stylefmt

Cmdalias.vim
Create aliases for Vim commands.
Stars: ✭ 27 (-22.86%)
Mutual labels:  viml
Vimix
Vimux with Elixir Mix Integration
Stars: ✭ 32 (-8.57%)
Mutual labels:  viml
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
Dotfiles
Some of my configuration.
Stars: ✭ 31 (-11.43%)
Mutual labels:  viml
Vim Readline
Readline bindings for Insert Mode
Stars: ✭ 33 (-5.71%)
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
Davesdots
Stars: ✭ 34 (-2.86%)
Mutual labels:  viml
Vim Hl Var
Stars: ✭ 32 (-8.57%)
Mutual labels:  viml
Tskeleton vim
File Templates and Code Skeletons/Snippets for VIM
Stars: ✭ 33 (-5.71%)
Mutual labels:  viml
Vim Yankring
Mirror of yankring.vim
Stars: ✭ 28 (-20%)
Mutual labels:  viml
Php Vim
make vim as a php ide
Stars: ✭ 30 (-14.29%)
Mutual labels:  viml
Vim Fuzzysearch
Fuzzy pattern building, in any buffer
Stars: ✭ 33 (-5.71%)
Mutual labels:  viml
Vim Dragvisuals
Vim global plugin for dragging virtual blocks
Stars: ✭ 28 (-20%)
Mutual labels:  viml
Hasksyn
A vim mode for Haskell
Stars: ✭ 34 (-2.86%)
Mutual labels:  viml
Vimrc
vgod's vimrc
Stars: ✭ 944 (+2597.14%)
Mutual labels:  viml
Codeschool Vim Theme
codeschool vim theme
Stars: ✭ 32 (-8.57%)
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
Cscope maps
cscope keyboard mappings for VIM
Stars: ✭ 33 (-5.71%)
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
  • Pathogen
    • cd ~/.vim/bundle && git clone git://github.com/kewah/vim-stylefmt.git
  • Vundle
    • Add Plugin 'kewah/vim-stylefmt' to .vimrc
    • Run :PluginInstall
  • NeoBundle
    • Add NeoBundle 'kewah/vim-stylefmt' to .vimrc
    • Run :NeoBundleInstall
  • vim-plug
    • Add Plug 'kewah/vim-stylefmt' to .vimrc
    • Run :PlugInstall

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].