mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
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:
parent
5cdbb22c34
commit
1a0b27965c
@ -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',
|
||||||
|
@ -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'],
|
||||||
|
Loading…
Reference in New Issue
Block a user