I use Neovim. Most of this config was in place before I switched, so it will probably work fine in any modern vim (7.4), but I don't actively test it. I don't want to exclude it yet though, so let me know if something's broken. Give Neovim a try if you haven't (or another try if you have in the past)! It's an awesome project.
:term
opens a real terminal in Neovim! (not taking credit, just making sure you know)<C-w>
will get you out of terminal mode and ready to move to another pane (h
,j
,k
,l
)<leader>
is bound to;
.;n
and;b
to jump to next/previous buffers.;w
for a quick save.;x
closes a the current buffer, but not the window or pane it's in.;q
closes the active pane.;Q
closes everything.;<Space>
opens CtrlP. Partially match a file name and hitEnter
. Refresh the file list with<F5>
. Move up and down the list with<C-k>
and<C-j>
.;e
to:Eval
the current expression using Fireplace. Automatically connects to a running Clojure[Script] REPL using.nrepl-port
.gc
in Visual mode to toggle commenting on the selected lines.
Many more small conveniences and syntax files included. I'm really picky about performance though, so you won't find any powerline craziness in here!
And go bind your CapsLock
key to Esc
for goodness' sake! (Karabiner and Seil)
Clone the repo and symlink .vimrc
(back up your existing first profile if you have one!):
git clone --recursive git://github.com/spicydonuts/.vim.git ~/.vim
ln -s ~/.vim/.vimrc ~/.vimrc
If you're using neovim, you'll need to symlink your vim config so neovim can see it:
ln -s ~/.vim ~/.config/nvim
ln -s ~/.vimrc ~/.config/nvim/init.vim
Neovim also requires some python plugins:
pip2 install neovim
pip3 install neovim
Open vim and install plugins (ignore the warning about not finding onedark
colors the first time you open vim).
(in vim)
:PlugInstall
(once it's done, close and reopen vim)
The editorconfig extension also depends on the external editorconfig
being available. You can install it with:
brew install editorconfig
This .vimrc
uses the Hasklig font, which is based on the excellent Source Code Pro.
This only applies when in a GUI such as macvim
or gvim
. Running vim in a terminal always uses the terminal's font.
This .vimrc
comes with One Dark enabled by default, and a few others included which I've used in the past and also like. Below are links to Terminal color profiles for those themes. You should match your terminal colors to your vim theme for it to work correctly. macvim
is the best way to test a theme without terminal color settings interfering.
- One Dark -- Terminal.app & iTerm
- Lucius
- Solarized Dark
Huge thanks to all the plugin authors and StackOverflow answers that made this possible!