Created
January 5, 2016 12:10
-
-
Save sachin21/dbd86fe5688f0c663c27 to your computer and use it in GitHub Desktop.
agvim for fishshell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function agvim | |
vim (ag $argv | peco --query "$LBUFFER" | awk -F : '{print "-c " $argv[2] " " $argv[1]}') | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ちなみにvimコマンドを消してagだけにしたら出力だけはちゃんと表示されました。
これをvimに渡せたら終わりなんですが。。