Permalink
Browse files

Add my name to peoples.

Refactor the YAML a bit and make sure in is valid
  • Loading branch information...
1 parent e4ea3df commit 963d1351b5df8b6bd221606f2accb3a67157bc94 @ingydotnet committed May 9, 2010
Showing with 19 additions and 18 deletions.
  1. +19 −18 README
View
37 README
@@ -1,40 +1,41 @@
# Vim syntax files
-# Language: YAML
-# Author: Igor Vergeichik <iverg@mail.ru>
-# Author: Nikolai Weibull <now@bitwi.se>
-# Sponsor: Tom Sawyer <transami@transami.net>
+# Language: YAML
+# Author: Igor Vergeichik <iverg@mail.ru>
+# Author: Nikolai Weibull <now@bitwi.se>
+# Sponsor: Tom Sawyer <transami@transami.net>
+# Sponsor: Ingy döt Net <ingy@ingy.net>
YAML.VIM and YAML collection sorting scripts:
INSTALLATION:
- Put yaml.vim in vim's syntax folder (/usr/share/vim/syntax on my system)
-- Add the .yaml/.yml extensions to the filetype.vim file: >
+- Add the .yaml/.yml extensions to the filetype.vim file: |
" Yaml
au BufNewFile,BufRead *.yaml,*.yml setf yaml
-- If you want add a new enty to the syntax menu: >
+- If you want add a new enty to the syntax menu:
an 50.110.370 &Syntax.WXYZ.Yaml :cal SetSyn("yaml")<CR>
- Put yamlsort.rb and yamlsort.vim into ~/.vim/scripts directory.
-SORT USE: >
- - Type vim command: >
- :source ~/.vim/scripts/yamlsort.vim
- - Then: >
+SORT USE:
+- Type vim command: |
+ :source ~/.vim/scripts/yamlsort.vim
+- Then: >
<F4> is mapped to sort YAML collections in direct order,
and <F5> in reversed order.
NOTES:
- - If you want change key mapping of sorting rules edit yamlsort.vim
+- If you want change key mapping of sorting rules edit yamlsort.vim
TODO:
- - Work with short notation of collections and mappings ({}, [])
- - Support sorting of multiline values
+- Work with short notation of collections and mappings ({}, [])
+- Support sorting of multiline values
Changelog:
2010-02-19:
- - Merge Nikolai Weibull's rendition of yaml.vim (thanks to Phill Baker).
+ - Merge Nikolai Weibull's rendition of yaml.vim (thanks to Phill Baker).
2002-06-09:
- - Key field can contain any number of spaces before column.
- - >
- If any record of collection does not key field (i.e field which
- value is used in sorting), it is placed to the end of collection.
+ - Key field can contain any number of spaces before column.
+ - >
+ If any record of collection does not key field (i.e field which
+ value is used in sorting), it is placed to the end of collection.

0 comments on commit 963d135

Please sign in to comment.