Git Product home page Git Product logo

vim-jsfmt's Introduction

vim-jsfmt

vim-jsfmt is a vim plugin for the formatiting tool jsfmt. vim-jsfmt is based on the go-fmt vimscript that ships with the vim-go plugin.

Installation

** Note: You have to have jsfmt install for this to work. npm install -g jsfmt >= version 0.5.2

Download zip file:

To install using Vundle:

" add this line to your .vimrc file
Plugin 'mephux/vim-jsfmt'

To install using pathogen.vim:

cd ~/.vim/bundle
git clone https://github.com/mephux/vim-jsfmt.git

To checkout the source from repository:

cd ~/.vim/bundle
git clone https://github.com/mephux/vim-jsfmt.git

Settings

By default vim-jsfmt shows errors for the jsfmt command, to disable it:

let g:js_fmt_fail_silently = 1

Enable auto fmt on save:

let g:js_fmt_autosave = 1

Set the command to use for formating.

let g:js_fmt_command = "jsfmt"

Configure jsfmt cli options.

let g:js_fmt_options = '--no-format'

Self-Promotion

Like vim-jsfmt.vim? Follow the repository on GitHub and if you would like to stalk me, follow mephux on Twitter and GitHub.

vim-jsfmt's People

Contributors

daikikohara avatar djcas9 avatar doug avatar mitsuse avatar nothingmuch avatar victorb avatar witzhsiao avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.