Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
2023-03-07 Motov\paolinia <motov\paolinia@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

3 changes: 0 additions & 3 deletions README

This file was deleted.

58 changes: 58 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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



3 changes: 3 additions & 0 deletions TODO.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## TODO ##

- [ ] Customize syntax file to highlight BEGIN:VEVENT and END:VEVENT to better reading in multi-appointment files
Binary file added doc/icalendar_screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions ftdetect/icalendar.vim
Original file line number Diff line number Diff line change
@@ -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
9 changes: 9 additions & 0 deletions synmenu.vim
Original file line number Diff line number Diff line change
@@ -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<Tab>-AP- :cal SetSyn("icalendar")<CR>
7 changes: 4 additions & 3 deletions syntax/icalendar.vim
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
" Vim syntax file
" Language: icalendar <http://www.ietf.org/rfc/rfc2445.txt>
" Maintainer: Steven N. Severinghaus <sns@severinghaus.org>
" Last Modified: 2006-04-17
" Version: 0.3
" Maintainer: Antonio Paolini <paolini@NOSPAM>
" Forked from: Original project by Steven N. Severinghaus <sns@severinghaus.org>
" Last Modified: 2023-03-29
" Version: 0.3.3

" Quit if syntax file is already loaded
if version < 600
Expand Down