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

Last Post!

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

RisingFromAshes
I’ve read in another post that it may be possible with a router helper - but I couldn’t find an appropriate one, and tbh, I’m still just ...
New
hariharasudhan94
Lets say I have map like this fetching from my database %{"_id" => #BSON.ObjectId<58eb1a7a9ad169198c3dXXXX>, "email" => ...
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
joeerl
Hello again - after a longish gap I’ve decided I really must dig into Elixir and see what’s been happening here - so I have a few questio...
New
WestKeys
Currently suffering from paralysis by [HTTP client] analysis. This is rather unusual in Elixirland as there tends to be consensus on the ...
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
svb
Hi! Currently I want to submit a form by pressing the Enter key. However, since my input field is of type “textarea” this is just adds a...
New

Other popular topics Top

rms.mrcs
Hi, I need to transform a list of numbers into a map where the keys are the indexes and the values are the original values of the list. ...
New
KronicDeth
Elixir plugin for JetBrain’s IntelliJ Platform (including Rubymine) This is a plugin that adds support for Elixir to JetBrains IntelliJ...
289 36654 110
New
minhajuddin
I have seen a lot of code which picks the first element from a list using Enum.at(0) instead of List.first. Is there a reason why people ...
New
Brian
What is the proper way to load a module from a file in to IEX? In the python world, doing something like this pretty standard: from ....
New
chrismccord
Phoenix 1.4.0 released Phoenix 1.4 is out! This release ships with exciting new features, most notably with HTTP2 support, improved deve...
688 31494 112
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

We're in Beta

About us Mission Statement