view runtime/ftplugin/nim.vim @ 35220:7e8da534b19e

runtime(nim): basic nim ftplugin file for comments (#14812) Commit: https://github.com/vim/vim/commit/f295050fa524b3a58289d12d3477b52a8610794f Author: Riley Bruins <ribru17@hotmail.com> Date: Mon May 20 05:16:17 2024 -0700 runtime(nim): basic nim ftplugin file for comments (https://github.com/vim/vim/issues/14812) Reference: https://nim-by-example.github.io/comments/#:~:text=Comments%20in%20Nim%20begin%20with%20the%20hash%20character.&text=Multiline%20or%20block%20comments%20begin,line%20comments%20can%20be%20nested. Signed-off-by: Riley Bruins <ribru17@hotmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Mon, 20 May 2024 14:30:04 +0200
parents
children
line wrap: on
line source

" Vim filetype plugin
" Language:	nim
" Maintainer:	Riley Bruins <ribru17@gmail.com>
" Last Change:	2024 May 19

if exists('b:did_ftplugin')
  finish
endif
let b:did_ftplugin = 1

setl comments=exO:]#,fs1:#[,mb:*,ex:]#,:# commentstring=#\ %s

let b:undo_ftplugin = 'setl com< cms<'