Git Product home page Git Product logo

.vim's Introduction

.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!

.vim's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.