Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> vim > LLM

I use both :)

Vim has a way to run shell programs with your selection as standard input as you'd know, and it will replace the selection with stdout.

So I type in my prompt e.g "mock js object array with 10 items each having name age and address" do `V!ollama run whatever` for example and it will fill it in there.

Now this is blocking and I have a hacky way to run it async and fill it in based on marks later in my vimrc. Neovim really since I use jobstart().

This also works with lots of other stuff, like quick code/mock generation e.g sometimes instead of asking an LLM I just write javascript/python inline and `vap!node`/python on it.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: