From 106be8ef1ef6aba2d94345a47b25b323e7c442e5 Mon Sep 17 00:00:00 2001 From: jbranchaud Date: Fri, 26 Aug 2016 13:55:33 -0500 Subject: [PATCH] Add Documentation Lookup With Vim and Alchemist as an elixir til --- README.md | 3 ++- ...ocumentation-lookup-with-vim-and-alchemist.md | 16 ++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 elixir/documentation-lookup-with-vim-and-alchemist.md diff --git a/README.md b/README.md index adcda29..a5a5ffb 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ variety of languages and technologies. These are things that don't really warrant a full blog post. These are mostly things I learn by pairing with smart people at [Hashrocket](http://hashrocket.com/). -_459 TILs and counting..._ +_460 TILs and counting..._ --- @@ -85,6 +85,7 @@ _459 TILs and counting..._ - [Assert An Exception Is Raised](elixir/assert-an-exception-is-raised.md) - [Binary Representation Of A String](elixir/binary-representation-of-a-string.md) - [Create A Date With The Date Sigil](elixir/create-a-date-with-the-date-sigil.md) +- [Documentation Lookup With Vim And Alchemist](elixir/documentation-lookup-with-vim-and-alchemist.md) - [Dynamically Generating Atoms](elixir/dynamically-generating-atoms.md) - [Execute Raw SQL In An Ecto Migration](elixir/execute-raw-sql-in-an-ecto-migration.md) - [Expose Internal Representation](elixir/expose-internal-representation.md) diff --git a/elixir/documentation-lookup-with-vim-and-alchemist.md b/elixir/documentation-lookup-with-vim-and-alchemist.md new file mode 100644 index 0000000..46f7932 --- /dev/null +++ b/elixir/documentation-lookup-with-vim-and-alchemist.md @@ -0,0 +1,16 @@ +# Documentation Lookup With Vim And Alchemist + +_Which argument position is the accumulator for `Enum.reduce/3`?_ + +_How does `group_by` work?_ + +I find myself fairly frequently jumping from vim to Chrome to do Google +searches for Elixir standard lib documentation. It gets the job done, but it +is kinda slow and I'd prefer to avoid the context switch. + +With [alchemist.vim](https://github.com/slashmili/alchemist.vim), Elixir +documentation lookup is at your finger tips. Just move the cursor over the +module or function you are curious about and hit `K` (from normal mode). + +Curious about `Enum.reduce`? Type it out in your current Vim buffer, move +the cursor over it, and hit `K`.