Mercurial > vim
annotate runtime/ftplugin/tcl.vim @ 14373:380217380738 v8.1.0201
patch 8.1.0201: newer Python uses "importlib" instead of "imp"
commit https://github.com/vim/vim/commit/79a494d5e2f97c10e74f92ea529552623c314422
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jul 22 04:30:21 2018 +0200
patch 8.1.0201: newer Python uses "importlib" instead of "imp"
Problem: Newer Python uses "importlib" instead of "imp".
Solution: Use "importlib" for newer Python versions. (closes https://github.com/vim/vim/issues/3163)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 22 Jul 2018 04:45:04 +0200 |
parents | 94601b379f38 |
children | 8ae680be2a51 |
rev | line source |
---|---|
2034 | 1 " Vim filetype plugin file |
2 " Language: Tcl | |
3 " Maintainer: Robert L Hicks <sigzero@gmail.com> | |
4 " Latest Revision: 2009-05-01 | |
5 | |
6 if exists("b:did_ftplugin") | |
7 finish | |
8 endif | |
9 let b:did_ftplugin = 1 | |
10 | |
11 " Make sure the continuation lines below do not cause problems in | |
12 " compatibility mode. | |
13 let s:cpo_save = &cpo | |
14 set cpo-=C | |
15 | |
16 setlocal comments=:# | |
17 setlocal commentstring=#%s | |
18 setlocal formatoptions+=croql | |
19 | |
20 " Change the browse dialog on Windows to show mainly Tcl-related files | |
21 if has("gui_win32") | |
22 let b:browsefilter = "Tcl Source Files (.tcl)\t*.tcl\n" . | |
23 \ "Tcl Test Files (.test)\t*.test\n" . | |
24 \ "All Files (*.*)\t*.*\n" | |
25 endif | |
26 | |
27 "----------------------------------------------------------------------------- | |
28 | |
29 " Undo the stuff we changed. | |
30 let b:undo_ftplugin = "setlocal fo< com< cms< inc< inex< def< isf< kp<" . | |
31 \ " | unlet! b:browsefilter" | |
32 | |
33 " Restore the saved compatibility options. | |
34 let &cpo = s:cpo_save | |
3410
94601b379f38
Updated runtime files. Add Dutch translations.
Bram Moolenaar <bram@vim.org>
parents:
2034
diff
changeset
|
35 unlet s:cpo_save |
2034 | 36 |
37 " vim: set et ts=4 sw=4 tw=78: |