aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_langmap.vim
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2016-06-08 00:23:48 -0400
committerJustin M. Keyes <justinkz@gmail.com>2016-06-08 00:23:48 -0400
commit7e74ba4108240bd20f4ee7116c407def0d9f4458 (patch)
tree843ac76d6cf8235e7ecaf0dfa3b0fcafcad56e7d /src/nvim/testdir/test_langmap.vim
parent00fc216e2be1f3a32fd31fb08a2ecdc66acd0543 (diff)
parent24a329b53aa3be03ed79768cca04d63d6bb93891 (diff)
downloadrneovim-7e74ba4108240bd20f4ee7116c407def0d9f4458.tar.gz
rneovim-7e74ba4108240bd20f4ee7116c407def0d9f4458.tar.bz2
rneovim-7e74ba4108240bd20f4ee7116c407def0d9f4458.zip
Merge pull request #4804 from brcolow/vim-7.4.1150
vim-patch:7.4.{1150,1151}
Diffstat (limited to 'src/nvim/testdir/test_langmap.vim')
-rw-r--r--src/nvim/testdir/test_langmap.vim24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_langmap.vim b/src/nvim/testdir/test_langmap.vim
new file mode 100644
index 0000000000..066c3bf2bd
--- /dev/null
+++ b/src/nvim/testdir/test_langmap.vim
@@ -0,0 +1,24 @@
+" tests for 'langmap'
+
+func Test_langmap()
+ new
+ set langmap=}l,^x,%v
+
+ call setline(1, ['abc'])
+ call feedkeys('gg0}^', 'tx')
+ call assert_equal('ac', getline(1))
+
+ " in Replace mode
+ " need silent! to avoid a delay when entering Insert mode
+ call setline(1, ['abcde'])
+ silent! call feedkeys("gg0lR%{z\<Esc>00", 'tx')
+ call assert_equal('a%{ze', getline(1))
+
+ " in Select mode
+ " need silent! to avoid a delay when entering Insert mode
+ call setline(1, ['abcde'])
+ silent! call feedkeys("gg0}%}\<C-G>}^\<Esc>00", 'tx')
+ call assert_equal('a}^de', getline(1))
+
+ quit!
+endfunc