-- vim: set foldmethod=marker foldmarker=[[,]] : -- Test for visual block shift and tab characters. local n = require('test.functional.testnvim')() local clear, feed, insert = n.clear, n.feed, n.insert local feed_command, expect = n.feed_command, n.expect describe('visual block shift and tab characters', function() setup(clear) it('is working', function() insert([[ one two three one two three one two three one two three one two three abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz]]) feed('gg') feed([[fe4jRugvr1:','>yank A]]) feed_command('/^abcdefgh') feed('4jI j11|D') feed('j7|a ') feed('j7|a ') feed('j7|a 4k13|4j') feed_command('$-5,$yank A') feed_command([[$-4,$s/\s\+//g]]) feed('4kI j') feed('j7|a ') feed('j7|a ') feed('j7|a 4k13|4j3') feed_command('$-4,$yank A') -- Put @a and clean empty lines feed_command('%d') feed_command('0put a') feed_command('$d') -- Assert buffer contents. expect([[ on1 two three on1 two three on1 two three on1 two three on1 two three abcdefghijklmnopqrstuvwxyz abcdefghij abc defghijklmnopqrstuvwxyz abc defghijklmnopqrstuvwxyz abc defghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz abcdefghij abc defghijklmnopqrstuvwxyz abc defghijklmnopqrstuvwxyz abc defghijklmnopqrstuvwxyz]]) end) end)