robin/laufey

git clone https://git.robinwobin.dev/robin/laufey

Christian Clasonvim-patch:9.1.0464: no whitespace padding in commentstring option in ftplugins2f5b8a0092

master
653 B27 linesraw
1" Vim filetype plugin file
2" Language: Odin
3" Maintainer: Maxim Kim <habamax@gmail.com>
4" Website: https://github.com/habamax/vim-odin
5" Last Change:	2024 Jan 15
6"		2024-May 23 by Riley Bruins <ribru17@gmail.com> ('commentstring')
7"
8" This file has been manually translated from Vim9 script.
9
10if exists("b:did_ftplugin")
11    finish
12endif
13let b:did_ftplugin = 1
14
15let s:cpo_save = &cpo
16set cpo&vim
17
18let b:undo_ftplugin = 'setlocal commentstring<'
19      \ .. '| setlocal comments<'
20      \ .. '| setlocal suffixesadd<'
21
22setlocal suffixesadd=.odin
23setlocal commentstring=//\ %s
24setlocal comments=s1:/*,mb:*,ex:*/,://
25
26let &cpo = s:cpo_save
27unlet s:cpo_save