1
0
forked from aniani/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: #14364

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Wu, Zhenyu
2024-03-31 19:20:14 +02:00
committed by Christian Brabandt
parent be71ac694f
commit abbb4a4f70
3 changed files with 4 additions and 2 deletions

View File

@@ -2436,7 +2436,7 @@ au BufNewFile,BufRead *.tape setf vhs
au BufNewFile,BufRead *.hdl,*.vhd,*.vhdl,*.vbe,*.vst,*.vho setf vhdl au BufNewFile,BufRead *.hdl,*.vhd,*.vhdl,*.vbe,*.vst,*.vho setf vhdl
" Vim script " Vim script
au BufNewFile,BufRead *.vim,.exrc,_exrc setf vim au BufNewFile,BufRead *.vim,.exrc,_exrc,.netrwhist setf vim
" Viminfo file " Viminfo file
au BufNewFile,BufRead .viminfo,_viminfo setf viminfo au BufNewFile,BufRead .viminfo,_viminfo setf viminfo

View File

@@ -785,7 +785,7 @@ def s:GetFilenameChecks(): dict<list<string>>
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'],

View File

@@ -704,6 +704,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
243,
/**/ /**/
242, 242,
/**/ /**/