Skip to content

Commit

Permalink
Setup git-gutter
Browse files Browse the repository at this point in the history
  • Loading branch information
benohara committed Nov 10, 2013
1 parent 55001e4 commit d3286cc
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 32 deletions.
10 changes: 10 additions & 0 deletions ftdetect/eyaml.vim
@@ -1 +1,11 @@
"
" dotvim : https://github.com/dotphiles/dotvim
"
" setup eyaml to use yaml syntax highlighting
"
" Authors:
" Ben O'Hara <bohara@gmail.com>
"

au BufNewFile,BufRead *.eyaml setlocal ft=yaml

10 changes: 10 additions & 0 deletions ftplugin/htmldjango.vim
@@ -1,3 +1,12 @@
"
" dotvim : https://github.com/dotphiles/dotvim
"
" Setup htmldjango
"
" Authors:
" Ben O'Hara <bohara@gmail.com>
"

let b:surround_{char2nr("v")} = "{{ \r }}"
let b:surround_{char2nr("{")} = "{{ \r }}"
let b:surround_{char2nr("%")} = "{% \r %}"
Expand All @@ -6,3 +15,4 @@ let b:surround_{char2nr("i")} = "{% if \1condition: \1 %}\r{% endif %}"
let b:surround_{char2nr("w")} = "{% with \1with: \1 %}\r{% endwith %}"
let b:surround_{char2nr("f")} = "{% for \1for loop: \1 %}\r{% endfor %}"
let b:surround_{char2nr("c")} = "{% comment %}\r{% endcomment %}"

32 changes: 0 additions & 32 deletions ftplugin/yaml.vim

This file was deleted.

12 changes: 12 additions & 0 deletions plugin/settings/git-gutter.vim
@@ -0,0 +1,12 @@
"
" dotvim : https://github.com/dotphiles/dotvim
"
" Setup git-gutter
"
" Authors:
" Ben O'Hara <bohara@gmail.com>
"

nmap <F9> :GitGutterToggle<CR>
nmap <F10> :GitGutterLineHighlightsToggle<CR>
1 change: 1 addition & 0 deletions vundles.vim
Expand Up @@ -35,6 +35,7 @@ if count(g:vundles, 'general')
Bundle 'mbbill/undotree'
if executable('git')
Bundle 'tpope/vim-fugitive'
Bundle 'airblade/vim-gitgutter'
endif
if executable('hg')
Bundle 'k-takata/hg-vim'
Expand Down

0 comments on commit d3286cc

Please sign in to comment.