aboutsummaryrefslogtreecommitdiff
path: root/indent
diff options
context:
space:
mode:
authorCody Hiar <codyfh@gmail.com>2017-02-19 17:12:42 -0700
committerCody Hiar <codyfh@gmail.com>2017-02-19 17:12:42 -0700
commite8e0f6bcf2e3caed116d6e823df421619ea24f58 (patch)
tree7ab1a78a10767fd075b6379b488171869170a3e2 /indent
parent800366d09dd715990c530b8998d758d66ccf5b13 (diff)
Big revamp after the thoughtbot video
Diffstat (limited to 'indent')
-rw-r--r--indent/yaml.vim32
1 files changed, 0 insertions, 32 deletions
diff --git a/indent/yaml.vim b/indent/yaml.vim
deleted file mode 100644
index 1b1ded3..0000000
--- a/indent/yaml.vim
+++ /dev/null
@@ -1,32 +0,0 @@
-" Vim indent file
-" Language: Yaml
-" Author: Ian Young
-" Get it bundled for pathogen: https://github.com/avakhov/vim-yaml
-
-if exists("b:did_indent")
- finish
-endif
-"runtime! indent/ruby.vim
-"unlet! b:did_indent
-let b:did_indent = 1
-
-setlocal autoindent sw=2 et
-setlocal indentexpr=GetYamlIndent()
-setlocal indentkeys=o,O,*<Return>,!^F
-
-function! GetYamlIndent()
- let lnum = v:lnum - 1
- if lnum == 0
- return 0
- endif
- let line = substitute(getline(lnum),'\s\+$','','')
- let indent = indent(lnum)
- let increase = indent + &sw
- if line =~ ':$'
- return increase
- else
- return indent
- endif
-endfunction
-
-" vim:set sw=2: