I threw out my Vim configuration to start over again.
Here’s here's my ~/.vim (https://github.com/jeffkreeftmeijer/.vim), if you’d like to follow along while I add configuration back. It’s working surprisingly well so far, actually.
First up; vim-polyglot (https://github.com/jeffkreeftmeijer/.vim/commit/a4ccb3c1d0a5e853b14dfc512a7cdb6808f79aed) to auto-load syntax highlighting and indentation rules for multiple languages.
I switched from the default color scheme to Dim (https://github.com/jeffkreeftmeijer/.vim/commit/ac63d5c5918dfb22f4f65fad58d32fc5de313764). It’s a clone of the default, but it uses ANSI colours exclusively and is consistent on light and dark backgrounds.
I configure colours in my terminal profile instead of dealing with Vim’s schemes.
I'm not dealing with fuzzy file finders this time around. Instead, I’ll use ctags to jump between files, `:b` to juggle open buffers and [I’ve configured Vim’s built-in netrw to help navigate project directory structures](https://github.com/jeffkreeftmeijer/.vim/commit/83d881fef5d7461e07dbf1e2597a44434796af50).
Three more plugins:
1. vim-surround (https://github.com/jeffkreeftmeijer/.vim/commit/6e6acdd5087937328795419db1fe3e37a48fe071) for `cs'"`-ing
2. vim-commentary (https://github.com/jeffkreeftmeijer/.vim/commit/84547def4bc80fa934addb1937447e7f568af642) for `gcc`-ing
3. vim-numbertoggle (https://github.com/jeffkreeftmeijer/.vim/commit/c3993949a1a789c5a64dceedbab7b5a96a9ce295) for `set :nornu!`-ing
Current total: 5, of which one is mostly there because I maintain it.
As my first foray into using a language server in my editor, I’ve installed coc.nvim and coc-elixir for an Elixir language server that provides automatic code completion, compiler checks and Dialyzer analysis.
Another great thing about coc.nvim is its ability to automatically format files on save through its plugins.
I've turned on automatic formatting for Elixir and Rust files by adding both to `coc.preferences.formatOnSaveFiletypes` in `coc-settings.json`.
I gave in. Instead of using netrw and ctags to navigate like I said I would, I installed fzf again. I’m really liking the new-to-me preview window. I’ve also added fzf.vim highlight colors to Dim (https://github.com/jeffkreeftmeijer/vim-dim/commit/b1332575624e5a212ca702a89f1c78acd88beb22) to limit it to using ANSI colors.
@jkreeftmeijer yours is showing "above" the view instead of in a temp split below... Must check that out
@schnittchen Yes, that seems to be the new default. I’d say updating your checkout should switch it to the floating panel. :)
Server run by the main developers of the project It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!