From 8ced9450c8019df93f03a39f9f1d0ca39df917f1 Mon Sep 17 00:00:00 2001 From: Stefan Huber Date: Mon, 8 Jan 2024 15:20:32 +0100 Subject: [PATCH] plugin: Factor your easychair2 into plugin --- ftdetect/easychair2.vim | 1 - plugins-noroot-nolowendbox.vim | 2 ++ syntax/easychair2.vim | 29 ----------------------------- 3 files changed, 2 insertions(+), 30 deletions(-) delete mode 100644 ftdetect/easychair2.vim delete mode 100644 syntax/easychair2.vim diff --git a/ftdetect/easychair2.vim b/ftdetect/easychair2.vim deleted file mode 100644 index 3dc8be2..0000000 --- a/ftdetect/easychair2.vim +++ /dev/null @@ -1 +0,0 @@ -au BufRead,BufNewFile *-review-[0-9]\+r[0-9]\+.txt set filetype=easychair2 diff --git a/plugins-noroot-nolowendbox.vim b/plugins-noroot-nolowendbox.vim index 5dd2de2..10783d1 100644 --- a/plugins-noroot-nolowendbox.vim +++ b/plugins-noroot-nolowendbox.vim @@ -23,6 +23,8 @@ Plug 'justmao945/vim-clang', {'for': ['c', 'cpp', 'objc']} Plug 'Konfekt/FastFold' Plug 'lervag/vimtex' +Plug 'shuber2/easychair2-syntax' + Plug 'mhinz/vim-signify' Plug 'tpope/vim-fugitive' Plug 'gko/vim-coloresque' diff --git a/syntax/easychair2.vim b/syntax/easychair2.vim deleted file mode 100644 index 280c5b9..0000000 --- a/syntax/easychair2.vim +++ /dev/null @@ -1,29 +0,0 @@ -" Vim syntax file -" Language: Easychair conference system review form -" Maintainer: Stefan Huber -" -" -" Changelog: -" 2010-12-12: Initial version -" 2024-01-08: Update to new syntax - -" Quit when a syntax file was already loaded -if version < 600 - syntax clear -elseif exists("b:current_syntax") - finish -endif - -runtime! syntax/tex.vim - -unlet! b:current_syntax - -syn region ec2Section start="==\*==" end="$" -syn region ec2Subsection start="==+==" end="$" -syn region ec2Comment start="==-==" end="$" - -hi def link ec2Comment Comment -hi def link ec2Section Directory -hi def link ec2Subsection Directory - -let b:current_syntax = "easychair2" -- 2.30.2