implement cmap for command line mapping
This commit is contained in:
1 parent
0969514f10
commit
3fd1222e4f
7 files changed
+191
-97
No files matched your search
@@ -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"},
|
||||
|
||||
Reference in new issue
Block a user