Bram Moolenaar | 94f82cb | 2019-07-24 22:30:27 +0200 | [diff] [blame] | 1 | " Tests for various Ex commands. |
| 2 | |
Bram Moolenaar | e20b9ec | 2020-02-03 21:40:04 +0100 | [diff] [blame] | 3 | source check.vim |
| 4 | |
Bram Moolenaar | 94f82cb | 2019-07-24 22:30:27 +0200 | [diff] [blame] | 5 | func Test_ex_delete() |
| 6 | new |
| 7 | call setline(1, ['a', 'b', 'c']) |
| 8 | 2 |
| 9 | " :dl is :delete with the "l" flag, not :dlist |
| 10 | .dl |
| 11 | call assert_equal(['a', 'c'], getline(1, 2)) |
| 12 | endfunc |
Bram Moolenaar | 0acae7a | 2019-08-06 21:29:29 +0200 | [diff] [blame] | 13 | |
| 14 | func Test_range_error() |
| 15 | call assert_fails(':.echo 1', 'E481:') |
| 16 | call assert_fails(':$echo 1', 'E481:') |
| 17 | call assert_fails(':1,2echo 1', 'E481:') |
| 18 | call assert_fails(':+1echo 1', 'E481:') |
| 19 | call assert_fails(':/1/echo 1', 'E481:') |
| 20 | call assert_fails(':\/echo 1', 'E481:') |
| 21 | normal vv |
| 22 | call assert_fails(":'<,'>echo 1", 'E481:') |
Bram Moolenaar | 9f6277b | 2020-02-11 22:04:02 +0100 | [diff] [blame] | 23 | call assert_fails(":\\xcenter", 'E10:') |
Bram Moolenaar | 0acae7a | 2019-08-06 21:29:29 +0200 | [diff] [blame] | 24 | endfunc |
Bram Moolenaar | 5241057 | 2019-10-27 05:12:45 +0100 | [diff] [blame] | 25 | |
| 26 | func Test_buffers_lastused() |
| 27 | call test_settime(localtime() - 2000) " middle |
| 28 | edit bufa |
| 29 | enew |
| 30 | call test_settime(localtime() - 10) " newest |
| 31 | edit bufb |
| 32 | enew |
| 33 | call test_settime(1550010000) " oldest |
| 34 | edit bufc |
| 35 | enew |
| 36 | call test_settime(0) |
| 37 | enew |
| 38 | |
| 39 | let ls = split(execute('buffers t', 'silent!'), '\n') |
| 40 | let bufs = ls->map({i,v->split(v, '"\s*')[1:2]}) |
| 41 | call assert_equal(['bufb', 'bufa', 'bufc'], bufs[1:]->map({i,v->v[0]})) |
| 42 | call assert_match('1[0-3] seconds ago', bufs[1][1]) |
| 43 | call assert_match('\d\d:\d\d:\d\d', bufs[2][1]) |
| 44 | call assert_match('2019/02/1\d \d\d:\d\d:00', bufs[3][1]) |
| 45 | |
| 46 | bwipeout bufa |
| 47 | bwipeout bufb |
| 48 | bwipeout bufc |
| 49 | endfunc |
Bram Moolenaar | 5d98dc2 | 2020-01-29 21:57:34 +0100 | [diff] [blame] | 50 | |
| 51 | " Test for the :copy command |
| 52 | func Test_copy() |
| 53 | new |
| 54 | |
| 55 | call setline(1, ['L1', 'L2', 'L3', 'L4']) |
| 56 | " copy lines in a range to inside the range |
| 57 | 1,3copy 2 |
| 58 | call assert_equal(['L1', 'L2', 'L1', 'L2', 'L3', 'L3', 'L4'], getline(1, 7)) |
| 59 | |
Bram Moolenaar | 1671f44 | 2020-03-10 07:48:13 +0100 | [diff] [blame] | 60 | " Specifying a count before using : to run an ex-command |
| 61 | exe "normal! gg4:yank\<CR>" |
| 62 | call assert_equal("L1\nL2\nL1\nL2\n", @") |
| 63 | |
Bram Moolenaar | 5d98dc2 | 2020-01-29 21:57:34 +0100 | [diff] [blame] | 64 | close! |
| 65 | endfunc |
| 66 | |
| 67 | " Test for the :file command |
| 68 | func Test_file_cmd() |
| 69 | call assert_fails('3file', 'E474:') |
| 70 | call assert_fails('0,0file', 'E474:') |
| 71 | call assert_fails('0file abc', 'E474:') |
| 72 | endfunc |
| 73 | |
| 74 | " Test for the :drop command |
| 75 | func Test_drop_cmd() |
| 76 | call writefile(['L1', 'L2'], 'Xfile') |
| 77 | enew | only |
| 78 | drop Xfile |
| 79 | call assert_equal('L2', getline(2)) |
| 80 | " Test for switching to an existing window |
| 81 | below new |
| 82 | drop Xfile |
| 83 | call assert_equal(1, winnr()) |
| 84 | " Test for splitting the current window |
| 85 | enew | only |
| 86 | set modified |
| 87 | drop Xfile |
| 88 | call assert_equal(2, winnr('$')) |
| 89 | " Check for setting the argument list |
| 90 | call assert_equal(['Xfile'], argv()) |
| 91 | enew | only! |
| 92 | call delete('Xfile') |
| 93 | endfunc |
| 94 | |
| 95 | " Test for the :append command |
| 96 | func Test_append_cmd() |
| 97 | new |
| 98 | call setline(1, [' L1']) |
| 99 | call feedkeys(":append\<CR> L2\<CR> L3\<CR>.\<CR>", 'xt') |
| 100 | call assert_equal([' L1', ' L2', ' L3'], getline(1, '$')) |
| 101 | %delete _ |
| 102 | " append after a specific line |
| 103 | call setline(1, [' L1', ' L2', ' L3']) |
| 104 | call feedkeys(":2append\<CR> L4\<CR> L5\<CR>.\<CR>", 'xt') |
| 105 | call assert_equal([' L1', ' L2', ' L4', ' L5', ' L3'], getline(1, '$')) |
| 106 | %delete _ |
| 107 | " append with toggling 'autoindent' |
| 108 | call setline(1, [' L1']) |
| 109 | call feedkeys(":append!\<CR> L2\<CR> L3\<CR>.\<CR>", 'xt') |
| 110 | call assert_equal([' L1', ' L2', ' L3'], getline(1, '$')) |
| 111 | call assert_false(&autoindent) |
| 112 | %delete _ |
| 113 | " append with 'autoindent' set and toggling 'autoindent' |
| 114 | set autoindent |
| 115 | call setline(1, [' L1']) |
| 116 | call feedkeys(":append!\<CR> L2\<CR> L3\<CR>.\<CR>", 'xt') |
| 117 | call assert_equal([' L1', ' L2', ' L3'], getline(1, '$')) |
| 118 | call assert_true(&autoindent) |
| 119 | set autoindent& |
| 120 | close! |
| 121 | endfunc |
| 122 | |
| 123 | " Test for the :insert command |
| 124 | func Test_insert_cmd() |
| 125 | new |
| 126 | call setline(1, [' L1']) |
| 127 | call feedkeys(":insert\<CR> L2\<CR> L3\<CR>.\<CR>", 'xt') |
| 128 | call assert_equal([' L2', ' L3', ' L1'], getline(1, '$')) |
| 129 | %delete _ |
| 130 | " insert before a specific line |
| 131 | call setline(1, [' L1', ' L2', ' L3']) |
| 132 | call feedkeys(":2insert\<CR> L4\<CR> L5\<CR>.\<CR>", 'xt') |
| 133 | call assert_equal([' L1', ' L4', ' L5', ' L2', ' L3'], getline(1, '$')) |
| 134 | %delete _ |
| 135 | " insert with toggling 'autoindent' |
| 136 | call setline(1, [' L1']) |
| 137 | call feedkeys(":insert!\<CR> L2\<CR> L3\<CR>.\<CR>", 'xt') |
| 138 | call assert_equal([' L2', ' L3', ' L1'], getline(1, '$')) |
| 139 | call assert_false(&autoindent) |
| 140 | %delete _ |
| 141 | " insert with 'autoindent' set and toggling 'autoindent' |
| 142 | set autoindent |
| 143 | call setline(1, [' L1']) |
| 144 | call feedkeys(":insert!\<CR> L2\<CR> L3\<CR>.\<CR>", 'xt') |
| 145 | call assert_equal([' L2', ' L3', ' L1'], getline(1, '$')) |
| 146 | call assert_true(&autoindent) |
| 147 | set autoindent& |
| 148 | close! |
| 149 | endfunc |
| 150 | |
| 151 | " Test for the :change command |
| 152 | func Test_change_cmd() |
| 153 | new |
| 154 | call setline(1, [' L1', 'L2', 'L3']) |
| 155 | call feedkeys(":change\<CR> L4\<CR> L5\<CR>.\<CR>", 'xt') |
| 156 | call assert_equal([' L4', ' L5', 'L2', 'L3'], getline(1, '$')) |
| 157 | %delete _ |
| 158 | " change a specific line |
| 159 | call setline(1, [' L1', ' L2', ' L3']) |
| 160 | call feedkeys(":2change\<CR> L4\<CR> L5\<CR>.\<CR>", 'xt') |
| 161 | call assert_equal([' L1', ' L4', ' L5', ' L3'], getline(1, '$')) |
| 162 | %delete _ |
| 163 | " change with toggling 'autoindent' |
| 164 | call setline(1, [' L1', 'L2', 'L3']) |
| 165 | call feedkeys(":change!\<CR> L4\<CR> L5\<CR>.\<CR>", 'xt') |
| 166 | call assert_equal([' L4', ' L5', 'L2', 'L3'], getline(1, '$')) |
| 167 | call assert_false(&autoindent) |
| 168 | %delete _ |
| 169 | " change with 'autoindent' set and toggling 'autoindent' |
| 170 | set autoindent |
| 171 | call setline(1, [' L1', 'L2', 'L3']) |
| 172 | call feedkeys(":change!\<CR> L4\<CR> L5\<CR>.\<CR>", 'xt') |
| 173 | call assert_equal([' L4', ' L5', 'L2', 'L3'], getline(1, '$')) |
| 174 | call assert_true(&autoindent) |
| 175 | set autoindent& |
| 176 | close! |
| 177 | endfunc |
| 178 | |
Bram Moolenaar | e20b9ec | 2020-02-03 21:40:04 +0100 | [diff] [blame] | 179 | " Test for the :language command |
| 180 | func Test_language_cmd() |
| 181 | CheckFeature multi_lang |
| 182 | |
| 183 | call assert_fails('language ctype non_existing_lang', 'E197:') |
| 184 | call assert_fails('language time non_existing_lang', 'E197:') |
| 185 | endfunc |
| 186 | |
| 187 | " Test for the :confirm command dialog |
| 188 | func Test_confirm_cmd() |
| 189 | CheckNotGui |
| 190 | CheckRunVimInTerminal |
| 191 | |
| 192 | call writefile(['foo1'], 'foo') |
| 193 | call writefile(['bar1'], 'bar') |
| 194 | |
| 195 | " Test for saving all the modified buffers |
| 196 | let buf = RunVimInTerminal('', {'rows': 20}) |
| 197 | call term_sendkeys(buf, ":set nomore\n") |
| 198 | call term_sendkeys(buf, ":new foo\n") |
| 199 | call term_sendkeys(buf, ":call setline(1, 'foo2')\n") |
| 200 | call term_sendkeys(buf, ":new bar\n") |
| 201 | call term_sendkeys(buf, ":call setline(1, 'bar2')\n") |
| 202 | call term_sendkeys(buf, ":wincmd b\n") |
| 203 | call term_sendkeys(buf, ":confirm qall\n") |
| 204 | call WaitForAssert({-> assert_match('\[Y\]es, (N)o, Save (A)ll, (D)iscard All, (C)ancel: ', term_getline(buf, 20))}, 1000) |
| 205 | call term_sendkeys(buf, "A") |
| 206 | call StopVimInTerminal(buf) |
| 207 | |
| 208 | call assert_equal(['foo2'], readfile('foo')) |
| 209 | call assert_equal(['bar2'], readfile('bar')) |
| 210 | |
| 211 | " Test for discarding all the changes to modified buffers |
| 212 | let buf = RunVimInTerminal('', {'rows': 20}) |
| 213 | call term_sendkeys(buf, ":set nomore\n") |
| 214 | call term_sendkeys(buf, ":new foo\n") |
| 215 | call term_sendkeys(buf, ":call setline(1, 'foo3')\n") |
| 216 | call term_sendkeys(buf, ":new bar\n") |
| 217 | call term_sendkeys(buf, ":call setline(1, 'bar3')\n") |
| 218 | call term_sendkeys(buf, ":wincmd b\n") |
| 219 | call term_sendkeys(buf, ":confirm qall\n") |
| 220 | call WaitForAssert({-> assert_match('\[Y\]es, (N)o, Save (A)ll, (D)iscard All, (C)ancel: ', term_getline(buf, 20))}, 1000) |
| 221 | call term_sendkeys(buf, "D") |
| 222 | call StopVimInTerminal(buf) |
| 223 | |
| 224 | call assert_equal(['foo2'], readfile('foo')) |
| 225 | call assert_equal(['bar2'], readfile('bar')) |
| 226 | |
| 227 | " Test for saving and discarding changes to some buffers |
| 228 | let buf = RunVimInTerminal('', {'rows': 20}) |
| 229 | call term_sendkeys(buf, ":set nomore\n") |
| 230 | call term_sendkeys(buf, ":new foo\n") |
| 231 | call term_sendkeys(buf, ":call setline(1, 'foo4')\n") |
| 232 | call term_sendkeys(buf, ":new bar\n") |
| 233 | call term_sendkeys(buf, ":call setline(1, 'bar4')\n") |
| 234 | call term_sendkeys(buf, ":wincmd b\n") |
| 235 | call term_sendkeys(buf, ":confirm qall\n") |
| 236 | call WaitForAssert({-> assert_match('\[Y\]es, (N)o, Save (A)ll, (D)iscard All, (C)ancel: ', term_getline(buf, 20))}, 1000) |
| 237 | call term_sendkeys(buf, "N") |
| 238 | call WaitForAssert({-> assert_match('\[Y\]es, (N)o, (C)ancel: ', term_getline(buf, 20))}, 1000) |
| 239 | call term_sendkeys(buf, "Y") |
| 240 | call StopVimInTerminal(buf) |
| 241 | |
| 242 | call assert_equal(['foo4'], readfile('foo')) |
| 243 | call assert_equal(['bar2'], readfile('bar')) |
| 244 | |
Bram Moolenaar | 72749f0 | 2020-03-26 20:51:43 +0100 | [diff] [blame] | 245 | call delete('foo') |
| 246 | call delete('bar') |
| 247 | endfunc |
| 248 | |
| 249 | func Test_confirm_cmd_cancel() |
Bram Moolenaar | bea9023 | 2020-03-26 22:09:52 +0100 | [diff] [blame] | 250 | CheckNotGui |
| 251 | CheckRunVimInTerminal |
| 252 | |
Bram Moolenaar | 406cd90 | 2020-02-18 21:54:41 +0100 | [diff] [blame] | 253 | " Test for closing a window with a modified buffer |
| 254 | let buf = RunVimInTerminal('', {'rows': 20}) |
| 255 | call term_sendkeys(buf, ":set nomore\n") |
| 256 | call term_sendkeys(buf, ":new\n") |
| 257 | call term_sendkeys(buf, ":call setline(1, 'abc')\n") |
| 258 | call term_sendkeys(buf, ":confirm close\n") |
| 259 | call WaitForAssert({-> assert_match('^\[Y\]es, (N)o, (C)ancel: *$', |
| 260 | \ term_getline(buf, 20))}, 1000) |
| 261 | call term_sendkeys(buf, "C") |
Bram Moolenaar | 72749f0 | 2020-03-26 20:51:43 +0100 | [diff] [blame] | 262 | call term_wait(buf, 50) |
Bram Moolenaar | 406cd90 | 2020-02-18 21:54:41 +0100 | [diff] [blame] | 263 | call term_sendkeys(buf, ":confirm close\n") |
| 264 | call WaitForAssert({-> assert_match('^\[Y\]es, (N)o, (C)ancel: *$', |
| 265 | \ term_getline(buf, 20))}, 1000) |
| 266 | call term_sendkeys(buf, "N") |
Bram Moolenaar | 406cd90 | 2020-02-18 21:54:41 +0100 | [diff] [blame] | 267 | call StopVimInTerminal(buf) |
Bram Moolenaar | e20b9ec | 2020-02-03 21:40:04 +0100 | [diff] [blame] | 268 | endfunc |
| 269 | |
Bram Moolenaar | 9f6277b | 2020-02-11 22:04:02 +0100 | [diff] [blame] | 270 | " Test for the :print command |
| 271 | func Test_print_cmd() |
| 272 | call assert_fails('print', 'E749:') |
| 273 | endfunc |
| 274 | |
| 275 | " Test for the :winsize command |
| 276 | func Test_winsize_cmd() |
| 277 | call assert_fails('winsize 1', 'E465:') |
| 278 | endfunc |
| 279 | |
| 280 | " Test for the :redir command |
| 281 | func Test_redir_cmd() |
| 282 | call assert_fails('redir @@', 'E475:') |
| 283 | call assert_fails('redir abc', 'E475:') |
Bram Moolenaar | 8dfcce3 | 2020-03-18 19:32:26 +0100 | [diff] [blame] | 284 | call assert_fails('redir => 1abc', 'E474:') |
| 285 | call assert_fails('redir => a b', 'E488:') |
| 286 | call assert_fails('redir => abc[1]', 'E474:') |
| 287 | let b=0zFF |
| 288 | call assert_fails('redir =>> b', 'E734:') |
| 289 | unlet b |
| 290 | |
Bram Moolenaar | 9f6277b | 2020-02-11 22:04:02 +0100 | [diff] [blame] | 291 | if has('unix') |
Bram Moolenaar | 8dfcce3 | 2020-03-18 19:32:26 +0100 | [diff] [blame] | 292 | " Redirecting to a directory name |
Bram Moolenaar | 9f6277b | 2020-02-11 22:04:02 +0100 | [diff] [blame] | 293 | call mkdir('Xdir') |
| 294 | call assert_fails('redir > Xdir', 'E17:') |
| 295 | call delete('Xdir', 'd') |
| 296 | endif |
| 297 | if !has('bsd') |
Bram Moolenaar | 8dfcce3 | 2020-03-18 19:32:26 +0100 | [diff] [blame] | 298 | " Redirecting to a read-only file |
Bram Moolenaar | 9f6277b | 2020-02-11 22:04:02 +0100 | [diff] [blame] | 299 | call writefile([], 'Xfile') |
| 300 | call setfperm('Xfile', 'r--r--r--') |
| 301 | call assert_fails('redir! > Xfile', 'E190:') |
| 302 | call delete('Xfile') |
| 303 | endif |
Bram Moolenaar | bc2b71d | 2020-02-17 21:33:30 +0100 | [diff] [blame] | 304 | |
| 305 | " Test for redirecting to a register |
| 306 | redir @q> | echon 'clean ' | redir END |
| 307 | redir @q>> | echon 'water' | redir END |
| 308 | call assert_equal('clean water', @q) |
| 309 | |
| 310 | " Test for redirecting to a variable |
| 311 | redir => color | echon 'blue ' | redir END |
| 312 | redir =>> color | echon 'sky' | redir END |
| 313 | call assert_equal('blue sky', color) |
Bram Moolenaar | 9f6277b | 2020-02-11 22:04:02 +0100 | [diff] [blame] | 314 | endfunc |
| 315 | |
| 316 | " Test for the :filetype command |
| 317 | func Test_filetype_cmd() |
| 318 | call assert_fails('filetype abc', 'E475:') |
| 319 | endfunc |
| 320 | |
| 321 | " Test for the :mode command |
| 322 | func Test_mode_cmd() |
| 323 | call assert_fails('mode abc', 'E359:') |
| 324 | endfunc |
| 325 | |
Bram Moolenaar | bc2b71d | 2020-02-17 21:33:30 +0100 | [diff] [blame] | 326 | " Test for the :sleep command |
| 327 | func Test_sleep_cmd() |
| 328 | call assert_fails('sleep x', 'E475:') |
| 329 | endfunc |
| 330 | |
| 331 | " Test for the :read command |
| 332 | func Test_read_cmd() |
| 333 | call writefile(['one'], 'Xfile') |
| 334 | new |
| 335 | call assert_fails('read', 'E32:') |
| 336 | edit Xfile |
| 337 | read |
| 338 | call assert_equal(['one', 'one'], getline(1, '$')) |
| 339 | close! |
| 340 | new |
| 341 | read Xfile |
| 342 | call assert_equal(['', 'one'], getline(1, '$')) |
| 343 | call deletebufline('', 1, '$') |
| 344 | call feedkeys("Qr Xfile\<CR>visual\<CR>", 'xt') |
| 345 | call assert_equal(['one'], getline(1, '$')) |
| 346 | close! |
| 347 | call delete('Xfile') |
| 348 | endfunc |
| 349 | |
| 350 | " Test for running Ex commands when text is locked. |
| 351 | " <C-\>e in the command line is used to lock the text |
| 352 | func Test_run_excmd_with_text_locked() |
| 353 | " :quit |
| 354 | let cmd = ":\<C-\>eexecute('quit')\<CR>\<C-C>" |
| 355 | call assert_fails("call feedkeys(cmd, 'xt')", 'E523:') |
| 356 | |
| 357 | " :qall |
| 358 | let cmd = ":\<C-\>eexecute('qall')\<CR>\<C-C>" |
| 359 | call assert_fails("call feedkeys(cmd, 'xt')", 'E523:') |
| 360 | |
| 361 | " :exit |
| 362 | let cmd = ":\<C-\>eexecute('exit')\<CR>\<C-C>" |
| 363 | call assert_fails("call feedkeys(cmd, 'xt')", 'E523:') |
| 364 | |
| 365 | " :close - should be ignored |
| 366 | new |
| 367 | let cmd = ":\<C-\>eexecute('close')\<CR>\<C-C>" |
| 368 | call assert_equal(2, winnr('$')) |
| 369 | close |
Bram Moolenaar | 818fc9a | 2020-02-21 17:54:45 +0100 | [diff] [blame] | 370 | |
| 371 | call assert_fails("call feedkeys(\":\<C-R>=execute('bnext')\<CR>\", 'xt')", 'E523:') |
| 372 | endfunc |
| 373 | |
| 374 | " Test for the :verbose command |
| 375 | func Test_verbose_cmd() |
| 376 | call assert_equal([' verbose=1'], split(execute('verbose set vbs'), "\n")) |
| 377 | call assert_equal([' verbose=0'], split(execute('0verbose set vbs'), "\n")) |
| 378 | let l = execute("4verbose set verbose | set verbose") |
| 379 | call assert_equal([' verbose=4', ' verbose=0'], split(l, "\n")) |
| 380 | endfunc |
| 381 | |
| 382 | " Test for the :delete command and the related abbreviated commands |
| 383 | func Test_excmd_delete() |
| 384 | new |
| 385 | call setline(1, ['foo', "\tbar"]) |
| 386 | call assert_equal(['^Ibar$'], split(execute('dl'), "\n")) |
| 387 | call setline(1, ['foo', "\tbar"]) |
| 388 | call assert_equal(['^Ibar$'], split(execute('dell'), "\n")) |
| 389 | call setline(1, ['foo', "\tbar"]) |
| 390 | call assert_equal(['^Ibar$'], split(execute('delel'), "\n")) |
| 391 | call setline(1, ['foo', "\tbar"]) |
| 392 | call assert_equal(['^Ibar$'], split(execute('deletl'), "\n")) |
| 393 | call setline(1, ['foo', "\tbar"]) |
| 394 | call assert_equal(['^Ibar$'], split(execute('deletel'), "\n")) |
| 395 | call setline(1, ['foo', "\tbar"]) |
| 396 | call assert_equal([' bar'], split(execute('dp'), "\n")) |
| 397 | call setline(1, ['foo', "\tbar"]) |
| 398 | call assert_equal([' bar'], split(execute('dep'), "\n")) |
| 399 | call setline(1, ['foo', "\tbar"]) |
| 400 | call assert_equal([' bar'], split(execute('delp'), "\n")) |
| 401 | call setline(1, ['foo', "\tbar"]) |
| 402 | call assert_equal([' bar'], split(execute('delep'), "\n")) |
| 403 | call setline(1, ['foo', "\tbar"]) |
| 404 | call assert_equal([' bar'], split(execute('deletp'), "\n")) |
| 405 | call setline(1, ['foo', "\tbar"]) |
| 406 | call assert_equal([' bar'], split(execute('deletep'), "\n")) |
| 407 | close! |
Bram Moolenaar | bc2b71d | 2020-02-17 21:33:30 +0100 | [diff] [blame] | 408 | endfunc |
| 409 | |
Bram Moolenaar | 5d98dc2 | 2020-01-29 21:57:34 +0100 | [diff] [blame] | 410 | " vim: shiftwidth=2 sts=2 expandtab |