implement cmap for command line mapping

This commit is contained in:
Gokcehan committed 2017-03-10 18:53:21 +03:00
1 parent 0969514f10
commit 3fd1222e4f
7 files changed
+191 -97

No files matched your search

+6
View File
@@ -173,6 +173,12 @@ var gEvalTests = []struct {
[]expr{&mapExpr{"gh", &listExpr{[]expr{&callExpr{"cd", []string{"~"}}}}}},
},
{
"cmap <c-g> cmd-escape",
[]string{"cmap", "<c-g>", "cmd-escape", "\n"},
[]expr{&cmapExpr{"<c-g>", "cmd-escape"}},
},
{
"cmd usage $du -h . | less",
[]string{"cmd", "usage", "$", "du -h . | less", "\n"},