/kapp-vim

My Vim Config

Primary LanguageVim Script

My (Mac)Vim configuration.

Uses these great plugins:

Installation

Backup then delete your existing ~/.vim and ~/.vimrc files.

git clone --recursive https://github.com/mtbkapp/kapp-vim.git 
ln -s <cloned-dir> ~/.vim
ln -s <cloned-dir>/.vimrc ~/.vimrc

vim-fireplace uses cider-nrepl nrepl middleware to accomplish many of it's tasks. The way I set it up is with Leiningen's ~/.lein/profiles.clj file that looks like this:

{:repl {:plugins [[cider/cider-nrepl "0.27.2"]
                  [mx.cider/enrich-classpath "1.6.2"]]}}

The YouCompleteMe plugin has modules that need to complied. See the it's README for how to install on your system. This is what I did on mine:

# jdk installed previously 
# xcode command line tools installed previously
# nodejs installed previously 
brew install cmake
cd kapp-vim/pack/common/start/YouCompleteMe
python3 ./install.py --clangd-completer --ts-completer --java-completer

Note: I've gotten compile errors trying to build YouCompleteMe on Mac OS Monterrey with Homebrew Python 3.11.6. To get around this I installed Homebrew python@3.10 and then used that version to compile YouCompleteMe:

brew install python@3.10
/usr/local/Cellar/python@3.10/3.10.13_1/bin/python3.10 ./install.py

On macOS Sonoma Home Brew appears to use /opt/homebrew

Clojure Helpers

  • Leader-r to reload the current namespace from the file system
  • cpt to run tests in the current namespace

Troubleshooting

Plugins are not loading

This project uses submodules. If you did not clone the project using --recursive then you need to manually update submodules.

cd ~/.vim
git submodule init
git submodule update

Plugins are out of date

cd ~/.vim
git submodule init
git submodule update

License

My config is free to use however you want. However, each plugin has its own license, so read those.