From 0ba35b243e52861a32f7b41f9b4d11a9264cc9dd Mon Sep 17 00:00:00 2001 From: tomoron Date: Sat, 19 Oct 2024 18:31:38 +0200 Subject: [PATCH] remove .py from type /* * */ and added a type # * # for it --- plugin/stdheader.vim | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugin/stdheader.vim b/plugin/stdheader.vim index f3c0959..2b9b66f 100644 --- a/plugin/stdheader.vim +++ b/plugin/stdheader.vim @@ -15,7 +15,7 @@ let s:length = 80 let s:margin = 5 let s:types = { - \'\.c$\|\.h$\|\.cc$\|\.hh$\|\.cpp$\|\.hpp$\|\.tpp$\|\.ipp$\|\.cxx$\|\.go$\|\.rs$\|\.php$\|\.py$\|\.java$\|\.kt$\|\.kts$': + \'\.c$\|\.h$\|\.cc$\|\.hh$\|\.cpp$\|\.hpp$\|\.tpp$\|\.ipp$\|\.cxx$\|\.go$\|\.rs$\|\.php$\|\.java$\|\.kt$\|\.kts$': \['/*', '*/', '*'], \'\.htm$\|\.html$\|\.xml$': \['', '*'], @@ -32,7 +32,9 @@ let s:types = { \'\.f90$\|\.f95$\|\.f03$\|\.f$\|\.for$': \['!', '!', '/'], \'\.lua$': - \['--', '--', '-'] + \['--', '--', '-'], + \'\.py$': + \['#', '#', '*'] \} function! s:filetype()