Groups
Groups
Sign in
Groups
Groups
vim_dev
Conversations
About
Send feedback
Help
Commit: runtime(nim): basic nim ftplugin file for comments (#14812)
2 views
Skip to first unread message
Christian Brabandt
unread,
May 20, 2024, 8:30:11 AM
5/20/24
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to vim...@googlegroups.com
runtime(nim): basic nim ftplugin file for comments (#14812)
Commit:
https://github.com/vim/vim/commit/f295050fa524b3a58289d12d3477b52a8610794f
Author: Riley Bruins <
rib...@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 <
rib...@hotmail.com
>
Signed-off-by: Christian Brabandt <
c...@256bit.org
>
diff --git a/.github/MAINTAINERS b/.github/MAINTAINERS
index a97d18d7d..e5c88f4d9 100644
--- a/.github/MAINTAINERS
+++ b/.github/MAINTAINERS
@@ -184,6 +184,7 @@ runtime/ftplugin/meson.vim @Liambeguin
runtime/ftplugin/modula2.vim @dkearns
runtime/ftplugin/modula3.vim @dkearns
runtime/ftplugin/nginx.vim @chr4
+runtime/ftplugin/nim.vim @ribru17
runtime/ftplugin/nroff.vim @a-vrma
runtime/ftplugin/nsis.vim @k-takata
runtime/ftplugin/octave.vim @dkearns
diff --git a/runtime/ftplugin/nim.vim b/runtime/ftplugin/nim.vim
new file mode 100644
index 000000000..4ab8b7b53
--- /dev/null
+++ b/runtime/ftplugin/nim.vim
@@ -0,0 +1,13 @@
+" Vim filetype plugin
+" Language: nim
+" Maintainer: Riley Bruins <
rib...@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<'
Reply all
Reply to author
Forward
0 new messages