aboutsummaryrefslogtreecommitdiff
path: root/test/functional/legacy/mapping_spec.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2016-01-13 23:03:58 -0500
committerJustin M. Keyes <justinkz@gmail.com>2016-01-13 23:03:58 -0500
commit269f3ac779ec607cc334ae03dafd19a150048029 (patch)
treeed83ad70d63a889428c3de02119c1c3eacc66d77 /test/functional/legacy/mapping_spec.lua
parentc2ab8441335af61495e9dd56e4a58cc38aa1a4ea (diff)
parentb1b8759fc31c437b60de534f547d9f055d5d3ad6 (diff)
downloadrneovim-269f3ac779ec607cc334ae03dafd19a150048029.tar.gz
rneovim-269f3ac779ec607cc334ae03dafd19a150048029.tar.bz2
rneovim-269f3ac779ec607cc334ae03dafd19a150048029.zip
Merge pull request #4010 from watiko/vim-7.4.614
vim-patch:7.4.614
Diffstat (limited to 'test/functional/legacy/mapping_spec.lua')
-rw-r--r--test/functional/legacy/mapping_spec.lua17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/functional/legacy/mapping_spec.lua b/test/functional/legacy/mapping_spec.lua
index 3f86ec60de..a0d19926cb 100644
--- a/test/functional/legacy/mapping_spec.lua
+++ b/test/functional/legacy/mapping_spec.lua
@@ -84,6 +84,23 @@ describe('mapping', function()
+]])
end)
+ it('feedkeys', function()
+ insert([[
+ a b c d
+ a b c d
+ ]])
+
+ -- Vim's issue #212 (feedkeys insert mapping at current position)
+ execute('nnoremap . :call feedkeys(".", "in")<cr>')
+ feed('/^a b<cr>')
+ feed('0qqdw.ifoo<esc>qj0@q<esc>')
+ execute('unmap .')
+ expect([[
+ fooc d
+ fooc d
+ ]])
+ end)
+
it('i_CTRL-G_U', function()
-- <c-g>U<cursor> works only within a single line
execute('imapclear')