michaeljsmith/vim-indent-object — Issue #7: sort a indent file
Author: juanpabloaj
Created: 2012-02-12 17:12:14+00:00
State: open

I use `indent-object` for sort a block of indent files (css, python) with this map

nmap ss vii!sort

example, in a css file

width:100px;
height:100px;

`ss`

height:100px;
width:100px;

but how I can sort a complete file ? example:

footer {
width:100px;
height:100px;
}
body {
color: #000;
}

to

body {
color: #000;
}
footer {
height:100px;
width:100px;
}