summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_cpoptions.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-06-20 16:05:32 +0200
committerBram Moolenaar <Bram@vim.org>2020-06-20 16:05:32 +0200
commit845e0ee59430eac07e74b6cb92020e420d17953d (patch)
tree26060a20d77b243156cdeda2d6ae7a735469bff3 /src/testdir/test_cpoptions.vim
parenta190548e9165bbae75144a3e47f01d7708b29073 (diff)
patch 8.2.1022: various parts of code not covered by testsv8.2.1022
Problem: Various parts of code not covered by tests. Solution: Add more tests. (Yegappan Lakshmanan, closes #6300)
Diffstat (limited to 'src/testdir/test_cpoptions.vim')
-rw-r--r--src/testdir/test_cpoptions.vim20
1 files changed, 14 insertions, 6 deletions
diff --git a/src/testdir/test_cpoptions.vim b/src/testdir/test_cpoptions.vim
index 052b3f3685..ce4e00deb3 100644
--- a/src/testdir/test_cpoptions.vim
+++ b/src/testdir/test_cpoptions.vim
@@ -246,6 +246,7 @@ func Test_cpo_H()
endfunc
" TODO: Add a test for the 'i' flag in 'cpo'
+" Interrupting the reading of a file will leave it modified.
" Test for the 'I' flag in 'cpo' (deleting autoindent when using arrow keys)
func Test_cpo_I()
@@ -294,9 +295,12 @@ func Test_cpo_J()
let &cpo = save_cpo
endfunc
-" TODO: Add a test for the 'k' flag in 'cpo'
+" TODO: Add a test for the 'k' flag in 'cpo'.
+" Disable the recognition of raw key codes in mappings, abbreviations, and the
+" "to" part of menu commands.
-" TODO: Add a test for the 'K' flag in 'cpo'
+" TODO: Add a test for the 'K' flag in 'cpo'.
+" Don't wait for a key code to complete when it is halfway a mapping.
" Test for the 'l' flag in 'cpo' (backslash in a [] range)
func Test_cpo_l()
@@ -334,7 +338,9 @@ func Test_cpo_L()
let &cpo = save_cpo
endfunc
-" TODO: Add a test for the 'm' flag in 'cpo'
+" TODO: Add a test for the 'm' flag in 'cpo'.
+" When included, a showmatch will always wait half a second. When not
+" included, a showmatch will wait half a second or until a character is typed.
" Test for the 'M' flag in 'cpo' (% with escape parenthesis)
func Test_cpo_M()
@@ -498,7 +504,9 @@ func Test_cpo_R()
let &cpo = save_cpo
endfunc
-" TODO: Add a test for the 's' flag in 'cpo'
+" TODO: Add a test for the 's' flag in 'cpo'.
+" Set buffer options when entering the buffer for the first time. If not
+" present the options are set when the buffer is created.
" Test for the 'S' flag in 'cpo' (copying buffer options)
func Test_cpo_S()
@@ -543,8 +551,8 @@ func Test_cpo_u()
let &cpo = save_cpo
endfunc
-" TODO: Add a test for the 'v' flag in 'cpo' (backspace doesn't remove
-" characters from the screen)
+" TODO: Add a test for the 'v' flag in 'cpo'.
+" Backspaced characters remain visible on the screen in Insert mode.
" Test for the 'w' flag in 'cpo' ('cw' on a blank character changes only one
" character)