diff --git a/runtime/filetype.vim b/runtime/filetype.vim index 46fca304cd7665..f6a52d83602ce2 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -308,6 +308,9 @@ if has("fname_case") au BufNewFile,BufRead *.EU,*.EW,*.EX,*.EXU,*.EXW call dist#ft#EuphoriaCheck() endif +" Evcxr history +au BufNewFile,BufRead */evcxr/history.txt setf rust + " Execline (s6) scripts au BufNewFile,BufRead *s6*/\(up\|down\|run\|finish\) setf execline diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim index 8abaa6132893e3..678285a45b2f1c 100644 --- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -728,7 +728,7 @@ def s:GetFilenameChecks(): dict> ruby: ['.irbrc', 'irbrc', '.irb_history', 'irb_history', 'file.rb', 'file.rbi', 'file.rbw', 'file.gemspec', 'file.ru', 'Gemfile', 'file.builder', 'file.rxml', 'file.rjs', 'file.rant', 'file.rake', 'rakefile', 'Rakefile', 'rantfile', 'Rantfile', 'rakefile-file', 'Rakefile-file', 'Puppetfile', 'Vagrantfile', 'Brewfile'], - rust: ['file.rs'], + rust: ['file.rs', 'any/.config/evcxr/history.txt'], sage: ['file.sage'], salt: ['file.sls'], samba: ['smb.conf'],