Fl4m3Ph03n1x

Fl4m3Ph03n1x

VIM Elixir folding

Background

So recently I moved in to Vim 8.1, trying to have an IDE I can simply take to any UNIX machine.
As part of this process, I am now picking which plugins to use for Elixir.

Objective

I miss a lot the ability to fold code. Thus naturally I am looking for an Elixir folding plugin for Vim, but I only found 1:

That’s it. It has no documentation on the Readme nor any additional install install information for PlugInstall which I use.

I also found a blog:

http://blog.nathansplace.co.uk/2018/vim_folding_swagger_elixir

But it is for swagger comments which I don’t really care about nor use.

If this sounds like a silly post, please notice I have just recently moved to Vim and I am still learning.

Question

  • Which code folders to you use for Elixir in your Vim setup?

Marked As Solved

hauleth

hauleth

So you need to manually create folds. If you want more automatic solution then add:

set foldmethod=syntax

in your $MYVIMRC and it will work.

Also Liked

hauleth

hauleth

What does :echo &foldmethod return? I am using syntax with just vim-elixir and everything works as expected without any problems.

Vim supports few different folding methods and you need to be sure that you use the one you want.

tomkonidas

tomkonidas

I wouldn’t look at a specific Elixir folding plugin, look more general Vim. Maybe this will help? How to fold

Where Next?

Popular in Questions Top

hariharasudhan94
lets say i have a sample like a = 20; b = 10; if (a > b) do {:ok, "a"} end if (a < b) do {:ok, b} end if (a == b) do {:ok, "equa...
New
ovidiubadita
Hey all, I discovered Elixir and I love it. I always wanted to learn a functional programming and I intended to go for Haskell, but afte...
New
skosch
To my knowledge, put_in, Map.update etc. all have the one limitation of not automatically creating intermediate keys when needed (for exa...
New
ashish173
I am using Ecto timestamps with postgres, I can see the timestamps() use the :naive_dateime but for my use case I wanted to store the ti...
New
jerry
Good day to you all. I have been struggling to get a query involving like and ilike to work. Can anyone assist me on this, please? pro...
New
dblack
I’ve got an issue with an app and I’ve no idea of how to troubleshoot it. I’m hoping someone here might have seen something similar. I p...
New
jason.o
In the code below, if the create action is not set to accept “extra_key” as an input, it errors out with a message shown above. Is there ...
New

Other popular topics Top

baxterw3b
Hi guys, i’m new in the Elixir world, and i have to say, that i love it! i’m having some problem to understand anonymous functions with ...
New
Qqwy
Original source of discussion: This topic on the Pragmatic Programmers’ Functional Web Development with Elixir, OTP, and Phoenix forum. ...
New
nsuchy
Hi. I’ve noticed that Windows Powershell has it’s own IEX command and you cannot access Elixir’s IEX due to the conflict. This isn’t a cr...
New
AstonJ
Seen any cool LiveView demos, sample apps or examples? Please post them here! :003:
New
shijith.k
I am trying to start a new phoenix project with elixir 1.9, but mix phx.new does not work. It says that ** (Mix) The task "phx.new" could...
New
romenigld
I am trying to run a deploy with docker and I successfully runned with this command: docker build -t romenigld/blog-prod . but when I t...
New

We're in Beta

About us Mission Statement