Zsh: string getting expanded

Viewed 12

I am trying to create a Zsh version of the Command Line Window in Vim.

I want to use the moreutils program vipe to pipe history into.

For that purpose, I have something like:

EDITOR='nvim -c "normal G"'      
fc -ln | vipe

Here, fc -ln represents the history, and $EDITOR represents the program that I'll be piping into.

The problem is, the above does not work.

In this specific case I get the file G" opened. It seems that the double quotes to surround the command are not being recognized.

Nor could I get it to work with any other combination of single quotes, double quotes or variables.

How can I pass in the string "normal G"?

0 Answers
Related