I use indent-object for sort a block of indent files (css, python) with this map
nmap <Leader>ss vii!sort<cr>
example, in a css file
width:100px;
height:100px;
<leader>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;
}
I use
indent-objectfor sort a block of indent files (css, python) with this mapexample, in a css file
<leader>ssbut how I can sort a complete file ? example:
to