blob: 9941c6cede37caa0f0d9507417a94723ff681652 [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001" Vim filetype plugin file
2" Language: RPL/2
Bram Moolenaarcb80aa22020-10-26 21:12:46 +01003" Maintainer: Joël BERTRAND <rpl2@free.fr>
Riley Bruins446a98f2025-06-09 21:10:11 +02004" Last Change: 2025 Jun 08
Bram Moolenaar071d4272004-06-13 20:20:40 +00005" Version: 0.1
6
7" Only do this when not done yet for this buffer
8if exists("b:did_ftplugin")
9 finish
10endif
11
12" Don't load another plugin for this buffer
13let b:did_ftplugin = 1
14
Bram Moolenaar071d4272004-06-13 20:20:40 +000015" Set 'formatoptions' to break comment lines but not other lines,
16" and insert the comment leader when hitting <CR> or using "o".
17setlocal fo-=t fo+=croql
18
19" Set 'comments' to format dashed lists in comments.
20setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,://
Riley Bruins446a98f2025-06-09 21:10:11 +020021setlocal commentstring=//\ %s
Bram Moolenaar84f72352012-03-11 15:57:40 +010022
Riley Bruins446a98f2025-06-09 21:10:11 +020023let b:undo_ftplugin = "setlocal fo< comments< commentstring<"