diff options
| author | Max Christian Pohle | 2019-06-10 23:40:23 +0200 |
|---|---|---|
| committer | Max Christian Pohle | 2019-06-10 23:40:23 +0200 |
| commit | 450d847e42582ef2734015869c59c7d1fdd6b208 (patch) | |
| tree | d8a051de440c9d581b20657bf446a7ddc474c4f6 /after | |
| parent | 7a09b882a53e44125488f8aab750b8bffed7b8ea (diff) | |
| download | vim-450d847e42582ef2734015869c59c7d1fdd6b208.tar.bz2 vim-450d847e42582ef2734015869c59c7d1fdd6b208.zip | |
Improved color schemes, indentation, autocompletion for text
Diffstat (limited to 'after')
| -rw-r--r-- | after/indent/yaml.vim | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/after/indent/yaml.vim b/after/indent/yaml.vim new file mode 100644 index 0000000..3027571 --- /dev/null +++ b/after/indent/yaml.vim | |||
| @@ -0,0 +1,18 @@ | |||
| 1 | set colorcolumn=80 | ||
| 2 | set textwidth=80 | ||
| 3 | |||
| 4 | let g:yaml_schema = "pyyaml" | ||
| 5 | |||
| 6 | |||
| 7 | |||
| 8 | function! YamlFix() | ||
| 9 | if(match(getline(v:lnum), ':$') > -1) | ||
| 10 | return -1 | ||
| 11 | elseif(match(getline(v:lnum), '^[^ ].*:$\|^\s*\.\.\.\|^\s*---\') > -1) | ||
| 12 | return 0 | ||
| 13 | else | ||
| 14 | return GetYAMLIndent(v:lnum) | ||
| 15 | endif | ||
| 16 | endfunction | ||
| 17 | setlocal indentexpr=YamlFix() | ||
| 18 | |||
