Configuration files for vim
Clone repo:
git clone git@github.com:parisyee/vim-bootstrap.git
Install brewdler
brew tap Homebrew/brewdler
Install rcm
From within the vim-bootstrap
directory
brew brewdle
Install dotfiles:
rcup -d vim-bootstrap -x README.md -x install -x Brewfile
Run install:
bash vim-bootstrap/install
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
,p = promote assignment to let
:Ag <search_term> = project pattern search (use Ag, install via brew)
,a = call Ag using the current work 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
Ss = split a one liner into multiple lines
Sj = join multiple lines into a one liner
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