Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1 | " Vim filetype plugin file |
| 2 | " Language: RPL/2 |
Bram Moolenaar | cb80aa2 | 2020-10-26 21:12:46 +0100 | [diff] [blame] | 3 | " Maintainer: Joël BERTRAND <rpl2@free.fr> |
Riley Bruins | 446a98f | 2025-06-09 21:10:11 +0200 | [diff] [blame] | 4 | " Last Change: 2025 Jun 08 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5 | " Version: 0.1 |
| 6 | |
| 7 | " Only do this when not done yet for this buffer |
| 8 | if exists("b:did_ftplugin") |
| 9 | finish |
| 10 | endif |
| 11 | |
| 12 | " Don't load another plugin for this buffer |
| 13 | let b:did_ftplugin = 1 |
| 14 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15 | " Set 'formatoptions' to break comment lines but not other lines, |
| 16 | " and insert the comment leader when hitting <CR> or using "o". |
| 17 | setlocal fo-=t fo+=croql |
| 18 | |
| 19 | " Set 'comments' to format dashed lists in comments. |
| 20 | setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,:// |
Riley Bruins | 446a98f | 2025-06-09 21:10:11 +0200 | [diff] [blame] | 21 | setlocal commentstring=//\ %s |
Bram Moolenaar | 84f7235 | 2012-03-11 15:57:40 +0100 | [diff] [blame] | 22 | |
Riley Bruins | 446a98f | 2025-06-09 21:10:11 +0200 | [diff] [blame] | 23 | let b:undo_ftplugin = "setlocal fo< comments< commentstring<" |