Skip to content

Instantly share code, notes, and snippets.

@sachin21
Created January 5, 2016 12:10
Show Gist options
  • Select an option

  • Save sachin21/dbd86fe5688f0c663c27 to your computer and use it in GitHub Desktop.

Select an option

Save sachin21/dbd86fe5688f0c663c27 to your computer and use it in GitHub Desktop.
agvim for fishshell
function agvim
vim (ag $argv | peco --query "$LBUFFER" | awk -F : '{print "-c " $argv[2] " " $argv[1]}')
end
@sachin21
Copy link
Copy Markdown
Author

sachin21 commented Jan 5, 2016

ちなみにvimコマンドを消してagだけにしたら出力だけはちゃんと表示されました。
これをvimに渡せたら終わりなんですが。。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment