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.
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.
I released Grim (https://github.com/jeffkreeftmeijer/vim-dim/blob/49c5833997461afbd5c9b06582d23382e40a245f/colors/grim.vim), and vim-nightfall (https://github.com/jeffkreeftmeijer/vim-nightfall) this week, so I’ve officially added both to my Vim configuration for monochrome syntax highlighting in both light and dark mode.
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.
@schnittchen I used fzf for years, but I haven’t really missed it after removing it a while back. It was convenient enough that I forgot about my ctags, which seem like a quicker way to move around.
In the interest of keeping my configuration as minimal as I can, I’ll double down on ctags for now, to see if that speeds things up a bit without having to manage an extra plugin.
What’s your setup like? :)
@jkreeftmeijer i use ctags, and fzf mostly for jumping to files. I guess the larger the project, the more valuable ctags become, but they both serve me well.
And I configured :grep to use ag
@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!