Skip to content

Instantly share code, notes, and snippets.

@asm-jaime
Created August 16, 2016 15:16
Show Gist options
  • Save asm-jaime/e1fe0b7b4448404a1e62e60703c1129d to your computer and use it in GitHub Desktop.
Save asm-jaime/e1fe0b7b4448404a1e62e60703c1129d to your computer and use it in GitHub Desktop.
.editorconfig use config with vim for jsbeautify
;.editorconfig
root = true
[**.js]
; path to optional external js beautifier, default is vim-jsbeautify/plugin/lib
path=/usr/local/lib/node_modules/js-beautify/js/lib/beautify.js
; Javascript interpreter to be invoked by default 'node'
bin = node
e4x = true
indent_style = space
indent_size = 2
tab_width = 2
[**.jsx]
; path to optional external js beautifier, default is vim-jsbeautify/plugin/lib
path=/usr/local/lib/node_modules/js-beautify/js/lib/beautify.js
; Javascript interpreter to be invoked by default 'node'
bin = node
e4x = true
indent_style = space
indent_size = 2
tab_width = 2
[**.css]
path=/usr/local/lib/node_modules/js-beautify/js/lib/beautify-css.js
indent_style = space
indent_size = 2
tab_width = 2
[**.html]
; Using special comments
; And such comments or apply only in global configuration
; So it's best to avoid them
;vim:path=/usr/local/lib/node_modules/js-beautify/js/lib/beautify-html.js
;vim:max_char=78:brace_style=expand
indent_style = space
indent_size = 2
tab_width = 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment