This PR includes several features which have been in the vim-restructuredtext development repository for a long time, but were never passed along to the main vim repo.
Bugfixes:
undo_indent
, undo_ftplugin
(78150af)These patches are long overdue, hopefully there won't be any disruption. Although content has been separated by commit and author, let me know if you'd prefer submission in a different format.
https://github.com/vim/vim/pull/18566
(3 files)
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.
@chrisbra commented on this pull request.
> @@ -27,7 +27,8 @@ let s:note_pattern = '^\.\. ' function! s:get_paragraph_start() let paragraph_mark_start = getpos("'{")[1] - return getline(paragraph_mark_start) =~ '\S' ? paragraph_mark_start : paragraph_mark_start + 1 + return getline(paragraph_mark_start) =~ + \ '\S' ? paragraph_mark_start : paragraph_mark_start + 1
you are using line-continuation here, so you need to update the cpo
setting at the beginning of the file (and reset it at the end of the file)
> @@ -32,6 +32,7 @@ setlocal formatoptions+=tcroql if exists("g:rst_style") && g:rst_style != 0 setlocal expandtab shiftwidth=3 softtabstop=3 tabstop=8 + let b:undo_ftplugin .= " | setlocal softtabstop< shiftwidth< tabstop<" endif if g:rst_fold_enabled != 0 && has('patch-7.3.867') " Introduced the TextChanged event.
you could potentially drop the check for patch 7.3.867 here.
> " Enable top level spell checking syntax spell toplevel -" TODO: Use better syncing. -syn sync minlines=50 linebreaks=2 +exe "syn sync minlines=" . get(g:, 'rst_minlines', 50) . " linebreaks=2"
This should be documented at :h ft-rst-syntax
> @@ -32,6 +32,7 @@ setlocal formatoptions+=tcroql if exists("g:rst_style") && g:rst_style != 0 setlocal expandtab shiftwidth=3 softtabstop=3 tabstop=8 + let b:undo_ftplugin .= " | setlocal softtabstop< shiftwidth< tabstop<" endif if g:rst_fold_enabled != 0 && has('patch-7.3.867') " Introduced the TextChanged event.
Oh and the commit mentions undo_indent
, but you are only updating undo_ftplugin
?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
@marshallward pushed 2 commits.
—
View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.
@marshallward pushed 9 commits.
You are receiving this because you are subscribed to this thread.
@marshallward commented on this pull request.
> " Enable top level spell checking syntax spell toplevel -" TODO: Use better syncing. -syn sync minlines=50 linebreaks=2 +exe "syn sync minlines=" . get(g:, 'rst_minlines', 50) . " linebreaks=2"
I've added a brief note about the flag in syntax.txt
.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
@marshallward commented on this pull request.
> @@ -32,6 +32,7 @@ setlocal formatoptions+=tcroql if exists("g:rst_style") && g:rst_style != 0 setlocal expandtab shiftwidth=3 softtabstop=3 tabstop=8 + let b:undo_ftplugin .= " | setlocal softtabstop< shiftwidth< tabstop<" endif if g:rst_fold_enabled != 0 && has('patch-7.3.867') " Introduced the TextChanged event.
Thanks, not sure what happened to undo_indent
(I wasn't the author) but I've edited the commit log. I've also removed the version check.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
@marshallward commented on this pull request.
> @@ -27,7 +27,8 @@ let s:note_pattern = '^\.\. ' function! s:get_paragraph_start() let paragraph_mark_start = getpos("'{")[1] - return getline(paragraph_mark_start) =~ '\S' ? paragraph_mark_start : paragraph_mark_start + 1 + return getline(paragraph_mark_start) =~ + \ '\S' ? paragraph_mark_start : paragraph_mark_start + 1
The cpo rest and state restore has been added.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
thanks
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.