1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-03 15:18:01 +00:00

Add Documentation Lookup With Vim and Alchemist as an elixir til

This commit is contained in:
jbranchaud
2016-08-26 13:55:33 -05:00
parent 17f6534de7
commit 106be8ef1e
2 changed files with 18 additions and 1 deletions

View File

@@ -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)

View File

@@ -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`.