sodapopcan

sodapopcan

Who are all the Vim users around here?

I’m wondering who still uses Vim for Elixir dev in these parts. VS Code appears to be the editor of choice for most or at least that is my impression!

I ask because I’m recently somewhat hellbent on fixing all the annoyances I’ve had with the existing vim integrations and wondering how far I should take it. I also just want a taste of how big the vim user-base is amongst Elixir devs and also curious how many vimmers have defected over to VS Code.

Say hi, if you will! :slight_smile:

First 10 of 91 Posts Switch mode

cnck1387

cnck1387

I switched to Vim around 2 years ago and plan to stick with it. But I don’t use any language servers. I’m a fan of a light weight autocomplete that picks up what’s open in any open buffers (similar to how Sublime Text does it) combined with snippets.

sodapopcan

sodapopcan

Oh ya, I love reading vimrcs and it would be great if people shared theirs. I’ve read probably 100 vimrcs over the past 10 years and I’ve learned something new from every single one no matter what the skill-level of the author is.

Mine is here: GitHub - sodapopcan/dotfiles: My config files · GitHub

dbern

dbern

Hello!
Love vim. I’m using neovim 0.5 built-in LSP for working with ElixirLS. However, 0.5 isn’t released yet, but when it is I’ll update my blog with how to use it. In the meantime my dotfiles may be helpful.

I haven’t done this yet, but there’s a prettier plugin for EEX formatting and an idea of a persistent Node process (like an LSP) for quick formatting. Or vim-prettier to run on demand.

AstonJ

AstonJ

I was a fairly big MacVim user but kept finding myself using TextMate 2 because it’s just such a nice looking editor on macOS. I miss things like split panes in Vim tho and I am hoping to get back into Vim via Onivim and as its development progresses - it’s stunning!

(We are also giving away a lifetime licence every month over at Devtalk if anyone’s interested)

lud

lud

I’m using neovim from time to time, learning it. I use CoC but that is still way more responsive than vscode. I use vscode and sublime too, and I really can’t make a definitive choice, unfortunately.

sorentwo

sorentwo

Oban Core Team

I’m a long time vim/neovim user. At this point tmux and vim keybindings are so ingrained that I can barely navigate elsewhere.

I use the elixir language server, which is 95% awesome. The 5% that is painful boils down to random crashes and dialyzer weirdness.

My dotfiles are available and somewhat minimal: GitHub - sorentwo/dotfiles: Dotfiles · GitHub

gregvaughn

gregvaughn

Another (neo)vim user here. I tried a language server last year, but it wasn’t ready enough for day-to-day use for me. It’s probably advanced enough for me to spend some more time trying it again, but I need to find that window of time to do so.

AndyL

AndyL

I use Neovim. Used IntelliJ for years. With elixir-lsp and coc, I switched 100% Nvim and Tmux. Looking forward to general release Neovim 0.5 to see what can be done with built-in LSP and Treesitter. My 2021 todo-list includes learning to write a simple Elixir refactoring plugin in Lua.

cmkarlsson

cmkarlsson

I’ve used vim since 2001 when I swapped over from emacs. Today the plugins I use, beside language syntax specific ones are vim-tmux-navigator fzf-vim and vimwiki.

fzf-vim has been the most productive one for me. Mostly because it makes it so quick to change between buffers. Learning to use buffers was the biggest productivity boast for me in the last couple of years. In an elixir (with fish shell) I just open all the files and navigate using fzf.

$ vim lib/**/*.ex lib/**/*.eex

The I have the config nmap <silent> bg :Buffers<CR> in .vimrc. Typing bg normal mode takes me to a fuzzy search for files. A simple key sequence would be:
bg page contr<CR> to open up lib/someapp_web/controller/page_controller.ex and I am in the right buffer. So quick, so responsive. The later versions also got a preview pane of the buffer you are selecting. Pretty cool.

I do the same for massive java projects as well. Just vim src/**/*.java and together witch ctags and I can just fly around in the code base. No GUI editor comes even close.

Apart from that I try to use as much vanilla vim as possible.

Lately I am writing typescript for a project and I added coc and coc-tsserver to the plugins because having type hints is nice. Unfortunately the added latency to the editor makes in not worth it. I don’t want to wait for my editor.

This is why I find VSCode and Intellij almost unusable. The latency to do things is stopping me from working properly. It doesn’t give the correct feedback and sometimes misses my key strokes. Never happens with vim. Those editors are slow and temperamental. They don’t always do what I tell them to. In general I don’t like slow things and find the modern computing environment challenging with slow web pages and software. It shouldn’t have to be that way. It should be better.

baldwindavid

baldwindavid

I started using vim-mode in various editors about 6 years ago and switched to neovim about 3 years ago. I use alchemist.vim for language integration and haven’t had any issues with it. I don’t think I could go back to a normal editor, but hope to switch to OniVim in the next few months. My workflow consists of a single window and anywhere between 2-8 split panes open at a time.

Where Next?

Trending in Discussions Top

AstonJ
As the title says, please share what you’ve been up to with Elixir. Whether that’s been learning it, looking into it, making stuff with i...
2977 91561 914
New
byu
@chrismccord : I just saw the Extract AGENTS.md from Phoenix.new into phx.new generator commit to the phoenix project. My initial shotgu...
New
arcanemachine
I was working on an Ecto migration and I needed a timestamp. So, for the nth time, I looked up the different data types for timestamps, a...
New
AstonJ
Just a general thread to post chat/news/info relating to AI/ML stuff that may be relevant for Nx now or in the future. Got anything to sh...
New
type1fool
I just stumbled on a newly redesigned elixir-lang.org. :tada: It looks like @Software_Mansion did the work, and I think it is generally a...
New
juhalehtonen
There has been a thread to discuss the Stack Overflow Developer Survey on this forum every year since 2018, so here’s yet another one for...
New
alexslade
Fly’s CEO posted this recently - Turn And Face The Strange · The Fly Blog It says that Fly is going all-in on sprites, which is a worry ...
New

Other Trending Topics Top

JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge &amp; Solve. They are GUI (Emerge) and State management (S...
New
ausimian
Emily is an Elixir library that runs Nx computations on Apple’s MLX. Install it as the default Nx backend and Nx, defn, Axon, Nx.Serving,...
New
akoutmos
@hugobarauna and I (Alex Koutmos) have been hard at work on writing a book on Nerves that takes you from simply blinking LEDs to building...
New
bjorng
We want to introduce a new native datatype to Erlang: native records. Although replacing all tuple records with native records is not our...
New

We're in Beta

About us Mission Statement