Mapping a Piped Shell Command in Vim
- by michaelmichael
In a previous question I asked about mapping evaluated code to a new window in MacVim. I got a great solution, but it presented another question: How can I map a key command in my .vimrc that involves piping output in the shell?
As a simple example, let's say I wanted to pipe the results of ls -a to a new MacVim window. From the Vim command line I…