diff --git a/my_configs.vim b/my_configs.vim index 867dd68d..8215a1d5 100644 --- a/my_configs.vim +++ b/my_configs.vim @@ -49,6 +49,18 @@ Plugin 'VundleVim/Vundle.vim' " My Plugins Plugin 'plasticboy/vim-markdown' +" https://github.com/maksimr/vim-jsbeautify.git +Plugin 'maksimr/vim-jsbeautify' +autocmd FileType javascript noremap :call JsBeautify() +" for json +autocmd FileType json noremap :call JsonBeautify() +" for jsx +autocmd FileType jsx noremap :call JsxBeautify() +" for html +autocmd FileType html noremap :call HtmlBeautify() +" for css or scss +autocmd FileType css noremap :call CSSBeautify() + " All of your Plugins must bebundleore the following line call vundle#end() " required filetype plugin indent on " required