Skip to content

Commit d8d4af4

Browse files
tyllcire831
authored andcommitted
Simplify vim file type detection (#30)
1 parent 40cd134 commit d8d4af4

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

tools/editor-modes/vim/filetype.vim

+2-10
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,2 @@
1-
" If ~/.vim/filetype.vim does not exist, install this file there.
2-
" Otherwise, hand merge it with the existing ~/.vim/filetype.vim.
3-
4-
if exists("did_load_filetypes")
5-
finish
6-
endif
7-
augroup filetypedetect
8-
au! BufRead,BufNewFile *.nc setfiletype nesc
9-
augroup END
10-
1+
" install in ~/.vim/ftdetect/nesc.vim
2+
au! BufRead,BufNewFile *.nc setfiletype nesc

0 commit comments

Comments
 (0)