https://github.com/begriffs/vimrc
An old plugin-heavy vim config (I do things differently nowadays)
https://github.com/begriffs/vimrc
Last synced: 7 months ago
JSON representation
An old plugin-heavy vim config (I do things differently nowadays)
- Host: GitHub
- URL: https://github.com/begriffs/vimrc
- Owner: begriffs
- Created: 2012-09-02T21:23:52.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2019-07-21T08:49:29.000Z (over 6 years ago)
- Last Synced: 2025-01-10T17:50:14.741Z (about 1 year ago)
- Language: Vim script
- Homepage:
- Size: 45.9 KB
- Stars: 31
- Watchers: 4
- Forks: 6
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Deprecation warning:
I've learned quite a bit since creating this project, and now prefer
built-in editor functionality to these plugins. See my article:
https://begriffs.com/posts/2019-07-19-history-use-vim.html
## Original readme:
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](http://blog.begriffs.com/2012/09/bespoke-vim.html)
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.