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.
These dotfiles organize commands into logical groups to help you remember them.
If you open a tmux terminal alongside MacVim then you can run commands, tests, and a REPL from your vim selections.
|,rs||Send selected text to tmux|
|,rv||Change tmux session, window, and pane attachment|
|,rT||Run all tests in open feature|
|,rt||Run test under cursor|
|,tu||Generate or update ctags|
|,tt||Open list of methods, classes, etc|
|C-]||Go to definition/step of word|
|C-\||Find all uses of word under cursor|
|,g?||Last-committed files (Monday morning key)|
|,gs||Git status (fugitive)|
|,gl||Git log (extradition)|
|\\||Toggle selection as commented|
|,a=||Align on equal signs|
|,a,||Align on commas|
|,a|||Align on vertical bar|
|,ap||Align on character of your choice|
|vai||Select whole block at indentation|
|vii||Select inside block at indentation|
|var||Select whole Ruby block|
|vir||Select inside Ruby block|
|,2s||Convert symbol under cursor from symbol to string|
|,2y||Convert string under cursor from string to symbol|
|,2_||Convert string under cursor to snake_case|
|,2c||Convert string under cursor to camelCase|
|,2m||Convert string under cursor to MixedCase|
|,2u||Convert string under cursor to SNAKE_UPPERCASE|
|,2-||Convert string under cursor to dash-case|
Splits and find file
|,<space>||Fuzzy file find (CtrlP)|
|,sj||Open split below|
|,sk||Open split above|
|,sh||Open split leftward|
|,sl||Open split rightward|
|,u||Interactive undo tree|
|,ss||Enable spell checking|
|,e||Open file prompt with current path|
|,<cr>||Clear search highlights|
|C-s||Toggle nerd tree, find file|
|,ff||Toggle MacVim fullscreen mode|
|C-h||Move cursor to leftward pane|
|C-k||Move cursor to upward pane|
|C-j||Move cursor to downward pane|
|C-l||Move cursor to rightward pane|
Add your own settings to
~/.vimrc.local and they will be loaded.