Questions tagged [plugin-vim-jsbeautify]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
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 ...
cjm2671's user avatar
  • 143
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 ...
alidrongo's user avatar
  • 143
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:...
Aaron Shen's user avatar
  • 2,489