Skip to content

sort a indent file #7

@juanpabloaj

Description

@juanpabloaj

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;
 }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions