Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for :sort #601

Closed
kalebpederson opened this issue Jul 12, 2011 · 12 comments
Closed

Add support for :sort #601

kalebpederson opened this issue Jul 12, 2011 · 12 comments

Comments

@kalebpederson
Copy link

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

@jaredpar
Copy link
Collaborator

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

@ElliottBignell
Copy link

Seconded. Could really use it right now!

@Kazark
Copy link
Contributor

Kazark commented Aug 19, 2013

+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.

@i-e-b
Copy link

i-e-b commented May 13, 2014

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

@misaxi
Copy link

misaxi commented Jul 22, 2014

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

@gibwar
Copy link
Contributor

gibwar commented Jul 13, 2016

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

@SimonCsoma
Copy link

Does closed mean "Will not implement"?

I still would love to see this feature

@ghost
Copy link

ghost commented Apr 19, 2018

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.

@jaredpar
Copy link
Collaborator

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

@ricksladkey
Copy link
Collaborator

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

@Kazark
Copy link
Contributor

Kazark commented May 2, 2018

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

@ricksladkey
Copy link
Collaborator

@Kazark Got the whole thing working, I think!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants