Questions tagged [plugin-vim-jsbeautify]
The plugin-vim-jsbeautify tag has no usage guidance.
3
questions
1
vote
1
answer
131
views
How can I reindent/prettyify blocks of HTML code?
I've got a lot of HTML files, some of them with garbage indentation.
How can I select a block, and then prettify/reindent the HTML within, adding in newlines where appropriate? I can install any ...
4
votes
1
answer
1k
views
Automatically call HTMLBeaufity when exiting Insert mode in Vim
I'd like to automatically format html and js code when I exit insert mode. Currently I have ctrlf mapped to format the current file in my .vimrc:
map <c-f> :call JSBeautify()<cr>
Is ...
1
vote
1
answer
440
views
Why vim-jsbeautify cannot find module?
I'm using vim in cygwin, I want to use https://github.com/maksimr/vim-jsbeautify to format my javascript code.
but whenever I use :call JsBeautify(), there's an error thrown:
E117: Unknown function:...