runtime(rst): set suffixesadd for rst
Commit:
https://github.com/vim/vim/commit/be6225976c0b7d120c41026de5616e76851dd2f2
Author: Anakin Childerhose <[email protected]>
Date: Sun Jan 11 18:48:13 2026 +0000
runtime(rst): set suffixesadd for rst
Add .rst to suffixesadd. This allows gf and similar commands to work for
rst documentation such as in the linux kernel Documentation.
closes: #19149
Signed-off-by: Anakin Childerhose <[email protected]>
Signed-off-by: Christian Brabandt <[email protected]>
diff --git a/runtime/ftplugin/rst.vim b/runtime/ftplugin/rst.vim
index 887f64bb4..1d31462d7 100644
--- a/runtime/ftplugin/rst.vim
+++ b/runtime/ftplugin/rst.vim
@@ -5,6 +5,7 @@
" Website: https://github.com/marshallward/vim-restructuredtext
" Latest Revision: 2020-03-31
" 2025 Oct 13 by Vim project: update b:undo_ftplugin #18566
+" 2026 Jan 11 by Vim project: set suffixesadd #19149
if exists("b:did_ftplugin")
finish
@@ -19,10 +20,11 @@ if !exists('g:rst_fold_enabled')
let g:rst_fold_enabled = 0
endif
-let b:undo_ftplugin = "setlocal comments< commentstring< expandtab<
formatoptions<"
+let b:undo_ftplugin = "setlocal comments< commentstring< expandtab<
formatoptions< suffixesadd<"
setlocal comments=fb:.. commentstring=..\ %s expandtab
setlocal formatoptions+=tcroql
+setlocal suffixesadd=.rst
" reStructuredText standard recommends that tabs be expanded to 8 spaces
" The choice of 3-space indentation is to provide slightly better support for
--
--
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/E1vf0fW-00806P-CQ%40256bit.org.