vim-patch:9.1.0243: filetype: netrw history file is not recognized

Problem:  filetype: netrw history file is not recognized
Solution: Detect .netrwhist as vim files (Wu, Zhenyu)

closes: vim/vim#14364

abbb4a4f70

Co-authored-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
This commit is contained in:
Christian Clason 2024-03-31 19:22:20 +02:00
parent 5cdbb22c34
commit 1a0b27965c
2 changed files with 2 additions and 1 deletions

View File

@ -1542,6 +1542,7 @@ local filename = {
vgrindefs = 'vgrindefs', vgrindefs = 'vgrindefs',
['.exrc'] = 'vim', ['.exrc'] = 'vim',
['_exrc'] = 'vim', ['_exrc'] = 'vim',
['.netrwhist'] = 'vim',
['_viminfo'] = 'viminfo', ['_viminfo'] = 'viminfo',
['.viminfo'] = 'viminfo', ['.viminfo'] = 'viminfo',
['.wgetrc'] = 'wget', ['.wgetrc'] = 'wget',

View File

@ -707,7 +707,7 @@ func s:GetFilenameChecks() abort
\ 'vgrindefs': ['vgrindefs'], \ 'vgrindefs': ['vgrindefs'],
\ 'vhdl': ['file.hdl', 'file.vhd', 'file.vhdl', 'file.vbe', 'file.vst', 'file.vhdl_123', 'file.vho', 'some.vhdl_1', 'some.vhdl_1-file'], \ 'vhdl': ['file.hdl', 'file.vhd', 'file.vhdl', 'file.vbe', 'file.vst', 'file.vhdl_123', 'file.vho', 'some.vhdl_1', 'some.vhdl_1-file'],
\ 'vhs': ['file.tape'], \ 'vhs': ['file.tape'],
\ 'vim': ['file.vim', '.exrc', '_exrc', 'some-vimrc', 'some-vimrc-file', 'vimrc', 'vimrc-file'], \ 'vim': ['file.vim', '.exrc', '_exrc', 'some-vimrc', 'some-vimrc-file', 'vimrc', 'vimrc-file', '.netrwhist'],
\ 'viminfo': ['.viminfo', '_viminfo'], \ 'viminfo': ['.viminfo', '_viminfo'],
\ 'vmasm': ['file.mar'], \ 'vmasm': ['file.mar'],
\ 'voscm': ['file.cm'], \ 'voscm': ['file.cm'],