Configuration files for vim
Clone repo:
git clone git@github.com:attack/vim-bootstrap.git
Install brewdler
brew tap Homebrew/brewdler
Install rcm
From within the vim-bootstrap
directory
brew bundle
Install dotfiles:
rcup -d vim-bootstrap -x README.md -x install -x Brewfile
Update Repo:
cd <your-vim-bootstrap-location>
git pull
Then just re-run the install steps, as they update as well.
Put your project sharable customizations in dotfiles appended with .shared
:
~/.vimrc.shared
~/.vimrc.bundles.shared
Put your customizations in dotfiles appended with .local
:
~/.gvimrc.local
~/.vimrc.local
~/.vimrc.bundles.local
Heavy influence from vimified
:Ag <search_term> = project pattern search (use Ag, install via brew)
,a = call Rg/Ag using the current word under the cursor (or visually selected)
,f = fuzzy file find (via CTRL-P)
,b = fuzzy open buffer find (via CTRL-P)
,F = fuzzy file find after resetign cache
<f5> = while in fuzzy finder, refresh cache
<space> = clear search higlighting
,v = veritical split
,h = horizontal split
,o = close all other windows in tab, except current
,n = rename file
,qo = open quickfix
,qc = close quickfix
[<space> = addline above
]<space> = addline below
<tab> = autocomplete (except when prefixed with whitespace)
<tab> = <tab> (only when prefixed with whitespace)
tt = toggle fullscreen mode on
ty = toggle fullscreen mode off
,rv = reload vimrc
,e = open edit command with current path filled in
<tab> = add indent level
<shift><tab> = remove indent level
<shift><command>c = copy current file path to clipboard
,C = copy current file + line number path to clipboard
<shift><command><down> = open next quickfix file listing (ie search result)
<shift><command><up> = open previous quickfix file listing (ie search result)
,g = git blame
\ = toggle tree
<shift>\ = toggle tree and focus on current file
,/ = toggle comment
<ctrl>k = paste over, keep original buffer
using vim-dispatch Dispatch
:
this will capture results and display in quickfix
<leader>t = run current spec + line in iTerm
<leader>s = run current spec file in iTerm
<leader>l = run last spec in iTerm
using vim-dispatch Start
:
this will not capture results
<leader>dt = run current spec + line in iTerm
<leader>ds = run current spec file in iTerm
<leader>dl = run last spec in iTerm
requires ctags installed recommend use of gem-ctags for ruby
<ctrl>] = find first tag match
<ctrl>\ = find next tag match
,rt = regenerate tags file
+ (multiple times) = expand text object selection
_ (multiple times) = collapse text object selection