Vsvim: Add support for :sort

Created on 12 Jul 2011  ·  12Comments  ·  Source: VsVim/VsVim

I was trying to sort a list of constants and noticed that :sort is still needed.

feature request

Most helpful comment

Also bumping in hopes this could get prioritized at some point, this request is over 5 years old!

All 12 comments

Yet another awesome feature I didn't know existed :)

Seconded. Could really use it right now!

+1. My organization uses strict StyleCop rules (grumble, grumble). Resharper doesn't seem to add using directives in the order StyleCop wants. It would be nice to just :sort them.

Bumping with a link to the docs:
http://vimdoc.sourceforge.net/htmldoc/change.html#:sort

ran into the same situation, would be nice to have :sort.

Also bumping in hopes this could get prioritized at some point, this request is over 5 years old!

Does closed mean "Will not implement"?

I still would love to see this feature

One work-around is to add GVim to the "Open with..." menu. Quickly open the file you are working on in vim, sort, return to VS. VS should prompt to reload due to the file being changed externally.

@funonly this issue is still active. There was a duplicate of this issue closed but the main issue is still active.

FYI, I'm working on the issue. I have sorting with or without reverse ordering and the ignore case sort option ([i]) working. I'll submit a PR when I get a little bit further. The full vim sort command is remarkably rich and I don't know if I have the stamina to implement all of the variants.

https://github.com/ricksladkey/VsVim/tree/sort-command

@ricksladkey I would be excited to see even a basic version of this implemented.

@Kazark Got the whole thing working, I think!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

keithn picture keithn  ·  3Comments

jaredpar picture jaredpar  ·  5Comments

jaredpar picture jaredpar  ·  5Comments

drhoda picture drhoda  ·  7Comments

thelamb picture thelamb  ·  5Comments