Comments (7)
I don't, but maybe @igaray (a vim user) knows?
from erlang_guidelines.
I previously used vimerl (defunct and now superceded by https://github.com/vim-erlang) and Csaba's plugin (can't find it, maybe @elbrujohalcon can ask), but guideline enforcement was manual, except for setting indentation to 2 spaces for most projects.
from erlang_guidelines.
I can't find @hcs42's plugin, but I found @hcs42 :P
from erlang_guidelines.
@benoitc in any case, if it's of any interest to you at all, here is my vim config, but it's not erlang nor erlang-guideline specific.
from erlang_guidelines.
@igaray ok thanks. looking at it
from erlang_guidelines.
@benoitc I'm using a few plugins to have syntax, some generators and inline syntax checks, see here for their names (they're all well documented - @elbrujohalcon they're the ones from @hcs42 )
from erlang_guidelines.
The vim-erlang-runtime repository contains the syntax highlight and indentation plugins for Vim. These plugins have been included in Vim since 2013 and haven't changed much since late 2014, so you don't need to install them if you have a reasonably recent Vim.
The syntax highlight plugin doesn't have much to do with coding conventions. It tries its best to highlight any Erlang source file; it won't highlight possible problems or instances of breaking the guideline.
The indentation follows the Emacs indentation style (with a few notable exceptions), which is a convention in itself. The Inaka guidelines mention only two things regarding indentation ("Spaces over tabs, 2 space indentation"). These are both configurable on the Vim level, and any indentation plugin will respect that.
In short, there is no Vim plugin in vim-erlang related to these guidelines.
from erlang_guidelines.
Related Issues (20)
- Debate: the reasoning behind "Avoid if Expressions" HOT 8
- Change lines by expressions
- When making a library, make sure all API functions reside in one module HOT 6
- Header files: 'should not include' and 'could include' HOT 8
- Remove elvis from the list of dependencies
- Prefer the git protocol over others when specifying dependency URLs HOT 4
- Using length/1 might be a red flag HOT 8
- Project Structure HOT 9
- Suggestion: Separate responsibilities in sumo_db. HOT 3
- How do you guys get your funs indented only 2 characters? HOT 2
- Change recommendation of git protocol to https for dependency download HOT 6
- Spaces per indentation HOT 3
- Don't leave debugging calls in your source code HOT 5
- RFC2119 compliance HOT 9
- Move from Erlang.mk to rebar3
- Suggestion: no if recommendation examples are missing or missleading HOT 1
- Variable name casing
- Atom casing
- Import stuff from Erlang.SE HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from erlang_guidelines.