Skip to content

Commit b6c8c84

Browse files
NicholasAsimovamadeus
authored andcommitted
Fix ftdetect interfering with other plugins (#1183)
This is from the help doc :help ftdetect: Note that there is no "augroup" command, this has already been done when sourcing your file. You could also use the pattern "*" and then check the contents of the file to recognize it. Reference: Vimjas/vint#264 fatih/vim-go#1645
1 parent 7cc6bae commit b6c8c84

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

ftdetect/javascript.vim

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,5 @@ fun! s:SelectJavascript()
44
endif
55
endfun
66

7-
augroup javascript_syntax_detection
8-
autocmd!
9-
autocmd BufNewFile,BufRead *.{js,mjs,jsm,es,es6},Jakefile setfiletype javascript
10-
autocmd BufNewFile,BufRead * call s:SelectJavascript()
11-
augroup END
7+
autocmd BufNewFile,BufRead *.{js,mjs,jsm,es,es6},Jakefile setfiletype javascript
8+
autocmd BufNewFile,BufRead * call s:SelectJavascript()

0 commit comments

Comments
 (0)