diff --git a/CHANGELOG b/CHANGELOG new file mode 100644 index 0000000..fc16d42 --- /dev/null +++ b/CHANGELOG @@ -0,0 +1,12 @@ +2023-03-07 Motov\paolinia + + * First version after forking the repo. + Added ftdetect directory and filetype detection file + +- 0.3.2 - 2023-03-23 + + Added syntax menu item (synmenu.vim) + +- 0.3.3 - 2023-03-23 + + Added the tag -AP- (Added by Plugin) at the end of the menu item + * Some minor enhancements and cleanup + diff --git a/README b/README deleted file mode 100644 index 8564887..0000000 --- a/README +++ /dev/null @@ -1,3 +0,0 @@ -This is a mirror of http://www.vim.org/scripts/script.php?script_id=1519 - -This is a very rudimentary syntax file for icalendar files (.ics), used by Apple's iCal, Mozilla's Sunbird, Google Calendar, and other software. A screenshot of the syntax highlighting using the "koehler" colorscheme is available here: http://severinghaus.org/projects/icalendar_syntax.png diff --git a/README.md b/README.md new file mode 100644 index 0000000..c477c6b --- /dev/null +++ b/README.md @@ -0,0 +1,58 @@ +# iCalendar.vim + +## Description +This is a fork of the original script from Steven Severinghaus (https://github.com/vim-scripts/icalendar.vim) + +This is a very rudimentary syntax file for icalendar files (.ics), used by Apple's iCal, Mozilla's Sunbird, Google Calendar, and other software. + +## Screenshots +![screenshot](doc/icalendar_screenshot.png?raw=true) + +Here's a screenshot of the syntax highlighting using the "PaperColor" colorscheme. + +## Installation +You can install icalendar.vim in the usual way, by copying the contents of the plugin, autoload and doc directories into the equivalent directories inside the runtime directory (see `:version` to know where your system put vim runtime files). + +### Manual installation +- Download the [zip file](https://github.com/antoniopaolini/icalendar.vim/archive/refs/heads/master.zip) +- unzip it. +- Go to vim's user runtime directory (.vim/ or vimfiles\) and copy the content of the zip file into folders with the same name. + +### Plugin Manager + +#### Pathogen +Alternatively, if you manage your plugins using **pathogen.vim**, you can simply clone into the bundle directory: + +Navigate to the vim's user runtime directory: +- **Windows**: + `cd %HOMEPATH%\vimfiles\bundle` +- **UNIX (Linux, MacOS X, and others)**: + `cd ~/.vim/bundle` + +Then clone the git repo. +`git clone https://github.com/antoniopaolini/icalendar.vim.git` + +#### Others Plugin Manager + +If you use Vundle or another Vim package manager, you'll need to adjust the commands below to work with it. +For example see Installation section of [this plugin](https://github.com/mattn/emmet-vim) + +## Version History + +- 0.3.3 - 2023-03-23 + + Added the tag -AP- (**A**dded by **P**lugin) at the end of the menu item + * Some minor enhancements and cleanup +- 0.3.2 - 2023-03-23 + + Added syntax menu item (synmenu.vim) +- 0.3.1 - 2023-03-08 + - First fork commit + + Added ftdetect folder with filetype detection file. + + +## Credits +This is a fork of the original icalendar.vim syntax file, from Steven Severinghaus (https://github.com/vim-scripts/icalendar.vim) + +This is no more a mirror of http://www.vim.org/scripts/script.php?script_id=1519 + + + diff --git a/TODO.txt b/TODO.txt new file mode 100644 index 0000000..8619b85 --- /dev/null +++ b/TODO.txt @@ -0,0 +1,3 @@ +## TODO ## + +- [ ] Customize syntax file to highlight BEGIN:VEVENT and END:VEVENT to better reading in multi-appointment files diff --git a/doc/icalendar_screenshot.png b/doc/icalendar_screenshot.png new file mode 100644 index 0000000..cdba611 Binary files /dev/null and b/doc/icalendar_screenshot.png differ diff --git a/ftdetect/icalendar.vim b/ftdetect/icalendar.vim new file mode 100644 index 0000000..9dad850 --- /dev/null +++ b/ftdetect/icalendar.vim @@ -0,0 +1,4 @@ +"""""""""""""""""""""""""""""""CHANGELOG"""""""""""""""""""""""""""""" +"2023-03-07 * aggiungo questo file affinché funzioni il file di sintassi +" - TODO: aggiungere altri formati? +au BufRead,BufNewFile *.ics set filetype=icalendar diff --git a/synmenu.vim b/synmenu.vim new file mode 100644 index 0000000..416d968 --- /dev/null +++ b/synmenu.vim @@ -0,0 +1,9 @@ +"PRIMA PROVA! +"if (exists("do_syntax_sel_menu") && do_syntax_sel_menu == 1 ) +" :amenu Syntax.HIJK.icalendar :cal SetSyn("icalendar") +"endif +"NON FUNZIONA!!! +"Invece se lo metto fuori dall'IF funziona + + +amenu 50.50.330 &Syntax.HIJK.icalendar-AP- :cal SetSyn("icalendar") diff --git a/syntax/icalendar.vim b/syntax/icalendar.vim index 7d60651..34cd799 100644 --- a/syntax/icalendar.vim +++ b/syntax/icalendar.vim @@ -1,8 +1,9 @@ " Vim syntax file " Language: icalendar -" Maintainer: Steven N. Severinghaus -" Last Modified: 2006-04-17 -" Version: 0.3 +" Maintainer: Antonio Paolini +" Forked from: Original project by Steven N. Severinghaus +" Last Modified: 2023-03-29 +" Version: 0.3.3 " Quit if syntax file is already loaded if version < 600