With javascript, a selection can be made and formatted independently.
This commit is contained in:
parent
898c6e4ac7
commit
7eb56bbdb5
@ -1,2 +1,5 @@
|
|||||||
vim-autoformat
|
vim-autoformat
|
||||||
==============
|
==============
|
||||||
|
|
||||||
|
html, css, javascript by vim-jsbeautify
|
||||||
|
python by autopep8
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
let &formatexpr="JsBeautify()"
|
let s:CliOptions = "-d"
|
||||||
let s:bundleDir = fnamemodify(expand("<sfile>"), ":h:h:h")
|
let s:bundleDir = fnamemodify(expand("<sfile>"), ":h:h:h")
|
||||||
let g:jsbeautify_file = fnameescape(s:bundleDir."/js-beautify/beautify.js")
|
let &formatprg=s:bundleDir."/js-beautify/python/js-beautify -i ".s:CliOptions
|
||||||
|
|
||||||
let g:jsbeautify = {'indent_size': 4, 'indent_char': ' '}
|
|
||||||
set expandtab
|
set expandtab
|
||||||
set tabstop=4
|
set tabstop=4
|
||||||
set shiftwidth=4
|
set shiftwidth=4
|
||||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user