Skip to content

ryoia/.vim

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

.vim

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 in classic vim. Give Neovim a try if you aren't using it! It's an awesome project.

Goodies

  • :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 hit Enter. 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)

To use this configuration

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

Open vim and install plugins (ignore the warning about not finding lucius colors)

vim
(in vim)
:PlugInstall
(close vim when it's done)

This includes the YouCompleteMe plugin, which requires an extra command to build (see their README for more info):

cd ~/.vim/bundle/YouCompleteMe
./install.sh # optional flags: --clang-completer --omnisharp-completer

The editorconfig extension also depends on the external editorconfig being available. You can install it with:

brew install editorconfig

Fonts

This .vimrc uses the excellent Source Code Pro (when in a gui like macvim or gvim).

Colors

Includes Lucius, if you'd like to use it for your terminal as well. My fork just adds OS X Terminal profiles (iTerm2 is very laggy in my experience).

Thanks

Huge thanks to all the plugin authors and StackOverflow answers that made this possible!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vim Script 100.0%