Created
November 7, 2012 09:57
-
-
Save kana/4030531 to your computer and use it in GitHub Desktop.
Listing 100 primes by Vim
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
S 1qa>>Ypq540@aQg/\v^( +)\1+\d/d | |
%s/ //g | |
wq |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
S 1qa>>Ypq540@aQg/\v^( +)\1+\d/d | |
%s/ * | |
wq |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
S 1qa>>Ypq540@aQg/\v^( +)\1+\d/d | |
%s/ * | |
x |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
S 1qa>>Ypq540@aQg/\v^( +)\1+</d | |
%s/ * | |
x |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
See also: http://vimgolf.com/challenges/4d1c27940e3d7832db000010 | |
Older solusions: https://gist.github.com/3986088 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment