Mercurial > vim
changeset 24905:50cdd1e6f152 v8.2.2990
patch 8.2.2990: Jupyter Notebook files are not recognized
Commit: https://github.com/vim/vim/commit/2e66b0d1373891f40e2561ccd2d3369de1614bcd
Author: kompowiec2 <diasp@o2.pl>
Date: Sun Jun 13 17:03:06 2021 +0200
patch 8.2.2990: Jupyter Notebook files are not recognized
Problem: Jupyter Notebook files are not recognized.
Solution: Recognize *.ipynb. (closes https://github.com/vim/vim/issues/8375)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 13 Jun 2021 17:15:03 +0200 |
parents | ff16ad911fdb |
children | 48ba15cbd318 |
files | runtime/filetype.vim src/testdir/test_filetype.vim src/version.c |
diffstat | 3 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -855,6 +855,9 @@ au BufNewFile,BufRead *.jov,*.j73,*.jovi " JSON au BufNewFile,BufRead *.json,*.jsonp,*.webmanifest setf json +" Jupyter Notebook is also json +au BufNewFile,BufRead *.ipynb setf json + " Kixtart au BufNewFile,BufRead *.kix setf kix
--- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -257,7 +257,7 @@ let s:filename_checks = { \ 'jgraph': ['file.jgr'], \ 'jovial': ['file.jov', 'file.j73', 'file.jovial'], \ 'jproperties': ['file.properties', 'file.properties_xx', 'file.properties_xx_xx', 'some.properties_xx_xx_file'], - \ 'json': ['file.json', 'file.jsonp', 'file.webmanifest', 'Pipfile.lock'], + \ 'json': ['file.json', 'file.jsonp', 'file.webmanifest', 'Pipfile.lock', 'file.ipynb'], \ 'jsp': ['file.jsp'], \ 'kconfig': ['Kconfig', 'Kconfig.debug', 'Kconfig.file'], \ 'kivy': ['file.kv'],