Skip to content

Commit dca40fc

Browse files
committed
Change js to javascript in autocmd FileType c,cpp,java,php,js,python,ruby autocmd BufWritePre :call setline(1,map(getline(1,"$"),'substitute(v:val,"\s\+$","","")')) to support Javascript file.
1 parent e701451 commit dca40fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.vimrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@
228228
set pastetoggle=<F12> " pastetoggle (sane indentation on pastes)
229229
"set comments=sl:/*,mb:*,elx:*/ " auto format comment blocks
230230
" Remove trailing whitespaces and ^M chars
231-
autocmd FileType c,cpp,java,php,js,python,twig,xml,yml autocmd BufWritePre <buffer> :call setline(1,map(getline(1,"$"),'substitute(v:val,"\\s\\+$","","")'))
231+
autocmd FileType c,cpp,java,php,javascript,python,twig,xml,yml autocmd BufWritePre <buffer> :call setline(1,map(getline(1,"$"),'substitute(v:val,"\\s\\+$","","")'))
232232
" }
233233

234234
" Key (re)Mappings {

0 commit comments

Comments
 (0)