aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_normal.vim
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-02-17 09:35:34 +0800
committerGitHub <noreply@github.com>2023-02-17 09:35:34 +0800
commit477bbb5f5fd9e56511c4d564a308fe7c47c7841f (patch)
tree6b8f0cecd8f2ed13c8db671ff79d11e9b84938c7 /src/nvim/testdir/test_normal.vim
parent0326ef2f41a5c18c6cfd2c1b1dda95f7b309a5c4 (diff)
parentf6a6db3e248dd6360dbd55574321ddc216848c13 (diff)
downloadrneovim-477bbb5f5fd9e56511c4d564a308fe7c47c7841f.tar.gz
rneovim-477bbb5f5fd9e56511c4d564a308fe7c47c7841f.tar.bz2
rneovim-477bbb5f5fd9e56511c4d564a308fe7c47c7841f.zip
Merge pull request #22291 from zeertzjq/vim-8.2.0148
vim-patch:8.2.0148
Diffstat (limited to 'src/nvim/testdir/test_normal.vim')
-rw-r--r--src/nvim/testdir/test_normal.vim100
1 files changed, 51 insertions, 49 deletions
diff --git a/src/nvim/testdir/test_normal.vim b/src/nvim/testdir/test_normal.vim
index 2aaa1ff830..390e179f13 100644
--- a/src/nvim/testdir/test_normal.vim
+++ b/src/nvim/testdir/test_normal.vim
@@ -2254,61 +2254,63 @@ func Test_normal29_brace()
" set cpo+={
" 1
" norm! 0d2}
- " let expected =<< trim [DATA]
- " {
- " This is no paragraph
- " unless the '{' is set
- " in 'cpoptions'
- " }
- " .IP
- " The nroff macros IP separates a paragraph
- " That means, it must be a '.'
- " followed by IP
- " .LPIt does not matter, if afterwards some
- " more characters follow.
- " .SHAlso section boundaries from the nroff
- " macros terminate a paragraph. That means
- " a character like this:
- " .NH
- " End of text here
- "
- " [DATA]
+
+ let expected =<< trim [DATA]
+ {
+ This is no paragraph
+ unless the '{' is set
+ in 'cpoptions'
+ }
+ .IP
+ The nroff macros IP separates a paragraph
+ That means, it must be a '.'
+ followed by IP
+ .LPIt does not matter, if afterwards some
+ more characters follow.
+ .SHAlso section boundaries from the nroff
+ macros terminate a paragraph. That means
+ a character like this:
+ .NH
+ End of text here
+
+ [DATA]
" call assert_equal(expected, getline(1, '$'))
- "
+
" $
" norm! d}
- " let expected =<< trim [DATA]
- " {
- " This is no paragraph
- " unless the '{' is set
- " in 'cpoptions'
- " }
- " .IP
- " The nroff macros IP separates a paragraph
- " That means, it must be a '.'
- " followed by IP
- " .LPIt does not matter, if afterwards some
- " more characters follow.
- " .SHAlso section boundaries from the nroff
- " macros terminate a paragraph. That means
- " a character like this:
- " .NH
- " End of text here
- "
- " [DATA]
+
+ let expected =<< trim [DATA]
+ {
+ This is no paragraph
+ unless the '{' is set
+ in 'cpoptions'
+ }
+ .IP
+ The nroff macros IP separates a paragraph
+ That means, it must be a '.'
+ followed by IP
+ .LPIt does not matter, if afterwards some
+ more characters follow.
+ .SHAlso section boundaries from the nroff
+ macros terminate a paragraph. That means
+ a character like this:
+ .NH
+ End of text here
+
+ [DATA]
" call assert_equal(expected, getline(1, '$'))
- "
+
" norm! gg}
" norm! d5}
- "
- " let expected =<< trim [DATA]
- " {
- " This is no paragraph
- " unless the '{' is set
- " in 'cpoptions'
- " }
-
- " [DATA]
+
+ let expected =<< trim [DATA]
+ {
+ This is no paragraph
+ unless the '{' is set
+ in 'cpoptions'
+ }
+
+ [DATA]
" call assert_equal(expected, getline(1, '$'))
" Jumping to a fold should open the fold