diff --git a/script/bootstrap.sh b/script/bootstrap.sh index 6efc58c..f00336f 100755 --- a/script/bootstrap.sh +++ b/script/bootstrap.sh @@ -122,6 +122,9 @@ install_vim_plugins () { "w0rp/ale" "pangloss/vim-javascript" "sirver/ultisnips" + "tpope/vim-surround" + "tpope/vim-fugitive" + "airblade/vim-gitgutter" ) local BASE_DIR="$DOTFILES_ROOT/vim/vim.symlink/bundle" local GIT_HOST="git@github.com" diff --git a/vim/vimrc.symlink b/vim/vimrc.symlink index 3b979fb..7975382 100644 --- a/vim/vimrc.symlink +++ b/vim/vimrc.symlink @@ -153,9 +153,8 @@ nnoremap :exec ":e " . FindTestFilename(expand('%')) " Git blame " -" Replace the buffer contents with git blame. -" Hit u to undo -nnoremap a :%!git blame % +" I used to do this by just filling in my buffer, but this is nicer. +nnoremap a :Gblame " Tab config options " @@ -477,6 +476,10 @@ let g:ale_sign_warning = '--' let g:ale_php_phpcs_standard = 'PSR2' let g:ale_javascript_eslint_options = '--no-ignore ' +" Gitgutter + +let g:gitgutter_realtime = 1 +let g:gitgutter_eager = 1 " JSX in mah JavaScript let g:jsx_ext_required = 0