How do I use the ‘|’ to separate multiple commands in a map?

You can escape the ‘|’ character using backslash (\) to use ‘|’ in a map.

    :map _l :!ls \| more

You can also try the following command:

    :map _l :!ls  more

There are also other ways to do this.

Read free Software Algorithms and Computer Science Books by CodeAhoy Learn.

Introduction to Recursion and Backtracking

Sorting Algorithms

Introduction to C Programming Language

And More...

Speak Your Mind