" Version Control - Modeline and Notes {{{ " vim: set sw=2 ts=2 sts=2 et tw=78 foldmarker={{{,}}} foldlevel=0 foldmethod=marker spell: " " Settings and functions to do with version control usage. Mostly for using " git through fugitive. " " }}} " Fugitive Autocommands {{{ if has("autocmd") " Fugitive - Go up to previous tree object while exploring git tree with '..' autocmd User fugitive \ if fugitive#buffer().type() =~# '^\%(tree\|blob\)$' | \ nnoremap .. :edit %:h | \ endif " Fugitive - Delete buffers when they are not active autocmd BufReadPost fugitive://* set bufhidden=delete endif " }}} " Mappings {{{ " Search for conflict markers {{{ nnoremap fc /\v^[<\|=>]{7}( .*\|$) " }}} " Git commands with Fugitive {{{ nnoremap gc :Gcommit -v nnoremap gl :Glog nnoremap gap :Git add -p nnoremap gs :Gstatus nnoremap gd :Gdiff nnoremap gb :Gblame " }}} " }}}