Skip to content
dlresendePublic

About

~/.vim/

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

498 Commits

Folders and files

Repository files navigation

Diego's Vim / Neovim Configuration

A portable, modular Vim and Neovim configuration optimized for macOS and Linux.


Supported Environments

  • Editors: Neovim (primary) and Vim
  • Operating Systems: macOS and Linux (Windows/WSL is not supported)
  • Clipboard: Native +clipboard on macOS; uses xsel on Linux

Prerequisites

Required tools (validated via make check):

Optional language servers (configured in coc-settings.json): solargraph (Ruby), bash-language-server (Bash).


Installation

Java language support

Export JAVA_HOME from your shell configuration before starting Vim or Neovim. It must point to a JDK compatible with the server bundled with coc-java (Java 25 for the currently tested bundle). CoC expands ${env:JAVA_HOME} in coc-settings.json, so JDK discovery belongs in your shell configuration rather than in machine-specific editor settings. An unset JAVA_HOME leaves the placeholder unresolved and prevents Java support from starting.

Check :echo $JAVA_HOME in the editor, run :CocRestart, and open a Java file. Use :CocCommand java.open.clientLog to confirm the JDK used to launch the server. Projects targeting another Java version can use java.configuration.runtimes; the server's launch JDK and the project's JDK are separate settings.

Automated

curl https://vimfiles.diegolemos.net/install | bash

Manual

git clone git@github.com:dlresende/vimfiles.git ~/.vim
cd ~/.vim
make install

Keybindings & Cheat Sheet

The leader key is , (let mapleader=",").

The full, auto-generated shortcut reference is maintained on the Project Wiki.

To export or view the cheat sheet locally, run:

make docs

Layout

vimrc acts as a dispatcher that sources configuration in the following order (note that load order is significant):

  1. config/plug.vim — plugin declarations (vim-plug). Must come first.
  2. config/plugin/* — per-plugin configurations.
  3. config/basic.vim — general editor settings.
  4. config/bindings.vim — global key mappings.
  5. config/bindings/*.vim — per-plugin key mappings.

Because config/bindings.vim is sourced after plugins load, a mapping defined there silently overrides a plugin's own default mapping.

Other entry points:

  • coc-settings.json — language server configurations
  • ftplugin/*.vim — filetype-specific settings
  • Makefile — setup, dependency checks, test targets, and doc generation

Testing

To verify the setup locally:

make check      # verify required tools are present on PATH
make install    # symlink configuration, install/update plugins
make test-nvim  # run smoke tests and checkhealth in Neovim
make test-vim   # run smoke tests in Vim
make test       # run all tests

CI (.github/workflows/ci.yml) runs the Neovim and Vim test suites in parallel on pull requests.

About

~/.vim/

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages