From 4f952249072851677b88740fc2e457b08bf24f59 Mon Sep 17 00:00:00 2001 From: dundargoc <33953936+dundargoc@users.noreply.github.com> Date: Sat, 25 Dec 2021 15:17:55 +0100 Subject: vim-patch:8.2.3873: go.mod files are not recognized (#16757) Problem: go.mod files are not recognized. Solution: Check for the file name. (closes vim/vim#9380) https://github.com/vim/vim/commit/82b3b4c6cf2973fe767f8e2311482af0bd95267e --- runtime/filetype.vim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'runtime') diff --git a/runtime/filetype.vim b/runtime/filetype.vim index 57aaeab766..8a705abd1c 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -1087,7 +1087,9 @@ au BufNewFile,BufRead *.mmp setf mmp " Modsim III (or LambdaProlog) au BufNewFile,BufRead *.mod - \ if getline(1) =~ '\' | + \ if expand("") =~ '\' | \ setf lprolog | \ else | \ setf modsim3 | -- cgit