Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Narnar vim fer sher
VimL Shell
Branch: master

Update url, use quiet vim vundle install

latest commit e1631a6b81
Adam C. Baker and Joe Nelson authored committed

README.md

This is a full featured yet fast vim configuration. It doesn't do any processing unless you ask. The keymapping aggregates commands from various plugins into logical groups, as documented below.

You can read more about the design and ideas behind this Vim config.

Installation / Upgrading

One command does it all.

curl -o - https://raw.githubusercontent.com/begriffs/vimrc/master/install.sh | sh

Don't worry, it will back up your existing vim configuration.

Keybindings

These dotfiles organize commands into logical groups to help you remember them.

Running Things

If you open a tmux terminal alongside MacVim then you can run commands, tests, and a REPL from your vim selections.

,rsSend selected text to tmux
,rvChange tmux session, window, and pane attachment
,rTRun all tests in open feature
,rtRun test under cursor

Tags

,tuGenerate or update ctags
,ttOpen list of methods, classes, etc
C-]Go to definition/step of word
C-\Find all uses of word under cursor

Git

,g?Last-committed files (Monday morning key)
,gsGit status (fugitive)
,ggGit grep
,glGit log (extradition)
,gdGit diff
,gbGit blame

Commenting

\\Toggle selection as commented

Aligning

,a=Align on equal signs
,a,Align on commas
,a|Align on vertical bar
,apAlign on character of your choice

Selection

vaiSelect whole block at indentation
viiSelect inside block at indentation
varSelect whole Ruby block
virSelect inside Ruby block

Conversion

,2sConvert symbol under cursor from symbol to string
,2yConvert string under cursor from string to symbol
,2_Convert string under cursor to snake_case
,2cConvert string under cursor to camelCase
,2mConvert string under cursor to MixedCase
,2uConvert string under cursor to SNAKE_UPPERCASE
,2-Convert string under cursor to dash-case

Splits and find file

,<space>Fuzzy file find (CtrlP)
,sjOpen split below
,skOpen split above
,shOpen split leftward
,slOpen split rightward

Misc

,uInteractive undo tree
,ssEnable spell checking
,eOpen file prompt with current path
,<cr>Clear search highlights
C-sToggle nerd tree, find file
,ffToggle MacVim fullscreen mode
,rRedraw screen
C-hMove cursor to leftward pane
C-kMove cursor to upward pane
C-jMove cursor to downward pane
C-lMove cursor to rightward pane

Customizing

Add your own settings to ~/.vimrc.local and they will be loaded.

Something went wrong with that request. Please try again.