runtime(sml): add 'include' setting to ftplugin
Commit:
https://github.com/vim/vim/commit/d829e10e0fa36de50ce230ee840dfc727e252642
Author: Mateo Gjika <[email protected]>
Date: Mon Jan 19 19:10:41 2026 +0000
runtime(sml): add 'include' setting to ftplugin
closes: https://github.com/vim/vim/issues/19156
Signed-off-by: Christian Brabandt <[email protected]>
diff --git a/runtime/ftplugin/sml.vim b/runtime/ftplugin/sml.vim
index f4a2f4ecd..328d9eea1 100644
--- a/runtime/ftplugin/sml.vim
+++ b/runtime/ftplugin/sml.vim
@@ -3,6 +3,7 @@
" Filenames: *.sml *.sig
" Maintainer: tocariimaa <[email protected]>
" Last Change: 2025 Nov 04
+" 2026 Jan 19 by Vim Project: add 'include' setting
if exists('b:did_ftplugin')
finish
@@ -12,11 +13,12 @@ let b:did_ftplugin = 1
let s:cpo_save = &cpo
set cpo&vim
-let b:undo_ftplugin = 'setl com< cms< fo<'
+let b:undo_ftplugin = 'setl com< cms< fo< inc<'
setlocal formatoptions+=croql formatoptions-=t
setlocal commentstring=(*\ %s\ *)
setlocal comments=sr:(*,mb:*,ex:*)
+setlocal include=^\s*use\>
if exists('loaded_matchit')
let b:match_ignorecase = 0
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/vim_dev/E1vhuiQ-003a0Z-Ux%40256bit.org.