aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2024-05-20 14:16:33 +0200
committerChristian Clason <c.clason@uni-graz.at>2024-05-20 14:43:12 +0200
commit6745cd8d7202c1c6394fb787aa335f68b2077b95 (patch)
treeb19e8645e396ed501fb8eb2cc580d1f4a16dac9d
parent2dfce05ec9fba1bd16b63355e7d75864090295ca (diff)
downloadrneovim-6745cd8d7202c1c6394fb787aa335f68b2077b95.tar.gz
rneovim-6745cd8d7202c1c6394fb787aa335f68b2077b95.tar.bz2
rneovim-6745cd8d7202c1c6394fb787aa335f68b2077b95.zip
vim-patch:f295050fa524
runtime(nim): basic nim ftplugin file for comments (vim/vim#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. https://github.com/vim/vim/commit/f295050fa524b3a58289d12d3477b52a8610794f Co-authored-by: Riley Bruins <ribru17@hotmail.com>
-rw-r--r--runtime/ftplugin/nim.vim13
1 files changed, 13 insertions, 0 deletions
diff --git a/runtime/ftplugin/nim.vim b/runtime/ftplugin/nim.vim
new file mode 100644
index 0000000000..4ab8b7b536
--- /dev/null
+++ b/runtime/ftplugin/nim.vim
@@ -0,0 +1,13 @@
+" 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<'